Selectors in jQuery are similar to CSS selectors.
$("#id")
→ Select element by ID$(".class")
→ Select by class$("p")
→ Select all<p>
tags$("p:first")
→ Select first<p>
Selectors in jQuery are similar to CSS selectors.
$("#id")
→ Select element by ID$(".class")
→ Select by class$("p")
→ Select all <p>
tags$("p:first")
→ Select first <p>
Leave a Reply