There are 3 types of selectors in Jquery
1. CSS Selector
2. XPath Selector
3. Custom Selector
There are many advantages with JQuery. Some of them are :
To select all elements in a page, we can use all selectors, for that we need to use *(asterisk symbol).
$("*").css("border", "2px dotted red");
The above code will select all elements of the web page and apply border width as 2 pixel, style as dotted and color as red.
It helps to
# Improve the performance of the application
# Develop most browser compatible web page
# Implement UI related critical functionality without writing hundreds of lines of codes
# Extensible – jQuery can be extended to implement customized behavior
Other advantages of jQuery are
# Simple and Cleaner code, no need to write several lines of codes to achieve complex functionality.