jQuery Getting Siblings - jQuery Tutorial 25

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • Notes for You:: jQuery Getting Siblings - jQuery Tutorial 25
    - two or more HTML elements having same parent are called siblings.
    siblings():
    $("#first-p").siblings("h2").css("border","1px solid black");
    - selects any h2, which is/are sibling of an html element with id #first-p
    next():
    $("#first-p").next().css("border","1px solid black");
    nextAll():
    $("#first-p").nextAll().css("border","2px solid red");
    nextUntil():
    $("#first-p").nextUntil("#last-p").css("border","2px solid red");
    prev():
    $("#last-p").prev().css("border","2px solid red");
    prevAll():
    $("#last-p").prevAll().css("border","2px solid red");
    prevUntil():
    $("#last-p").prevUntil("h2").css("border","2px solid red");
    =========================================
    Follow the link for next video:
    • jQuery Filter Methods ...
    Follow the link for previous video:
    • jQuery Getting Descend...
    =========================================
    jQuery Tutorials Playlist:-
    • jQuery Tutorials
    =========================================
    Watch My Other Useful Tutorials:-
    jQuery UI Tutorials Playlist:-
    • jQuery UI Tutorials
    Bootstrap Tutorials Playlist:-
    • Bootstrap4 Tutorials
    Dreamweaver Tutorials Playlist:-
    • Dreamweaver Tutorials
    =========================================
    ► Subscribe to our UA-cam channel:
    / chidrestechtutorials
    ► Visit our Website:
    www.chidrestec...
    =========================================
    Hash Tags:-
    #ChidresTechTutorials #jQuery #jQueryTutorial

КОМЕНТАРІ •