jQuery :contains() Selector
jQuery :contains() Selector
The :contains() selector is used to select elements containing the specified string. The string may be present directly in the element as text, or in a child element. The text in it is case-sensitive.
Syntax:-
Its syntax is:- $(":contains(text)");
Further Explanation:-
Parameter | Description |
---|---|
text | Required. Specifies the text to find |