Selectors using jQuery
If you are using jQuery in your project, you must know how easy it is to use selectors with jQuery. It provides convenient methods to select elements instead of using multiple JavaScript functions:
$("p")
: This selects element by tag name$("#myID")
: This selects element based on theid
attribute$(".myClass")
: This selects element based on theclass
attribute
For more details on advanced jQuery selectors, visit http://www.w3schools.com/jquery/jquery_selectors.asp.