Answer»
- jQuery Selectors are used to select one or a group of HTML ELEMENTS from your web PAGE.
- jQuery support all the CSS selectors as well as many additional custom selectors.
- jQuery selectors ALWAYS start with dollar sign and parentheses: $()
There are three building blocks to select the elements in a web DOCUMENT.
- Select elements by tag name Example: $(div) It will select all the div elements in the document.
- Select elements by ID Example: $(#xyzid”) It will select single element that has an ID of xyzid
- Select elements by class Example: $(“.xyzclass”) It will select all the elements having class xyzclass
There are three building blocks to select the elements in a web document.
|