6
Reply

What are different type of selector in jQuery?

Swaraj Patil

Swaraj Patil

Jun 12, 2014
6.2k
0

    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 Sharma
    July 03, 2014
    1

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

    Munesh Sharma
    July 23, 2014
    0

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

    Yogesh Tyagi
    July 11, 2014
    0

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

    Manju lata Yadav
    July 09, 2014
    0

    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 Sharma
    July 03, 2014
    0

    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 Patil
    June 12, 2014
    0