jQuery contains() selector

Last Updated Jul 30, 2015, 02:00:06 PM





jQuery contains() selector

jQuery contains selector selects all elements which contains the specified text in HTML.
Syntax Example

The below example underlines the names which contains Gates asHTMLtext in it


Output


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 30, 2015, 02:00:06 PM