Interviews - C# Corner

Swaraj Patil
What are different type of selector in jQuery?
By Swaraj Patil in .NET onJun 12 2014
  • Sahil Sharma
    Jul, 2014 3

    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")

    • 1
  • Munesh Sharma
    Jul, 2014 23

    http://www.w3schools.com/jquery/jquery_ref_selectors.asp

    • 0
  • Yogesh  Tyagi
    Jul, 2014 11

    view this link for jquery selector with example http://www.w3schools.com/jquery/jquery_selectors.asp

    • 0
  • Manju lata Yadav
    Jul, 2014 9

    For more selector visit below link http://api.jquery.com/category/selectors/

    • 0
  • Sahil Sharma
    Jul, 2014 3

    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")

    • 0
  • Swaraj Patil
    Jun, 2014 12

    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

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS