jQuery Universal Selector

Last Updated Jul 21, 2015, 12:00:06 PM





jQuery Universal Selector

jQuery universal selector is used to select all HTML elements on the webpage.

Be sure when to use the jquery universal selector. If you misuse this universal selector it will change all the elements on the webpage.

Syntax
Example HTML

You can select all <h3> elements on a page like this:

jQuery

When you click on click mebutton, all <h3> elements will be hidden:

The above example produces the following output

jquery univeral selector
Try It Now
Other Advanced jQuery Selectors you might want to learn

jQuery Complete Selectors Reference

jQuery Selectors

jQuery Basic Selectors

jQuery Child Selectors

jQuery Content Filter Selectors


Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM