A Selector identifies an HTML element tag that is used to manipulate with jQuery code.
Selectors allow page elements to be selected. $ is the symbol used for it. $ can also be called as jQuery selector. Selectors are the most important part of the jQuery , we can say that heart of jQuery.
- We can select single (using id selectors) or multiple elements using class or element selectors
- Selectors find DOM Elements to manipulate based on CSS Selector syntax
- Selectors can find the elements by ID, class, Element Name and hierarchical positioning
- Selectors can return sequence of DOM elements , and we can use methods or logic on every matched element.