jQuery Multiple Selector

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

jQuery Multiple Selector

jQuery multiple selector is used to target multiple HTML elements at a time and apply the required styles to HTML elements.

Example HTML

In the above HTML code we have three different html elements those arediv two paragraph p elements and one span element

By using jQuery multiple selector we can target all the four different HTML elements and apply the styles in a single as follows


The above jquery multiple selector will target div, p, span elements and apply css styles as css( "border", "3px solid blue" )
jquery multiple 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