jQuery 5 - selectors - Id selector

preview_player
Показать описание
jQuery Selectors.
Different type of selectors in jQuery.
#id selector in jQuery.

jQuery selectors :
The most important topic in jQuery is selectors.
jQuery selectors allow you to select and manipulate HTML elements.
Different selectors in jQuery :
jQuery selectors allow you to select html elements in the DOM by :
Tag Id
Tag Name.
Tag Class.
Attribute and Attribute values
Universal selector.

jQuery #id Selector :
If we know the id of an element that we want to find, then always use the #id selector.

Key points :
Html element Id’s must be unique on the page.
jQuery #id selector returns only the first element, if you have 2 or more elements with same ID.

ankpro
ankpro training
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
Components of the .Net framework
Hello World
Рекомендации по теме