Interviews6 answers
What are different type of selector in jQuery?
6 Answers
http://www.w3schools.com/jquery/jquery_ref_selectors.asp
Munesh SharmaPosted Jul 23, 2014, 2:04 AM EDT
view this link for jquery selector with example
http://www.w3schools.com/jquery/jquery_selectors.asp
Yogesh TyagiPosted Jul 10, 2014, 8:16 PM EDT
For more selector visit below link
http://api.jquery.com/category/selectors/
Manju lata YadavPosted Jul 8, 2014, 9:28 PM EDT
There are various selectors in jQuery but the most popular are:
1. ID Selector - Selects the element with the id using the '#' keyword as $("#username")
2. Class Selector - Selects the element with the class name using the '.' keyword as $(".students")
3. Element Selector - Selects the element using its type. For example if the element is a paragraph
, then it goes like $("p")
Sahil SharmaPosted Jul 2, 2014, 11:53 PM EDT
There are various selectors in jQuery but the most popular are:
1. ID Selector - Selects the element with the id using the '#' keyword as $("#username")
2. Class Selector - Selects the element with the class name using the '.' keyword as $(".students")
3. Element Selector - Selects the element using its type. For example if the element is a paragraph
, then it goes like $("p")
Sahil SharmaPosted Jul 2, 2014, 11:52 PM EDT
Following are selectors in jQuery to access element using jQuery -
1) Class Selector $(".classbane")
2) Id Selector $("#div1")
3) Element Selector $("p")
4) Universal (all elements) $("*")
There are many more selectors to select based on input type, attribute value
Swaraj PatilPosted Jun 12, 2014, 6:05 AM EDT



