Description
The :contains selector selects elements containing the specified string.
The string can be contained directly in the element as text, or in a child element.
This is mostly used together with another element/selector to select the elements containing the text in a specific group.
v1.1.4
This selector has the form:
$(":contains(text)")
Parameter | Description |
---|---|
text | (required) Specifies the text to find. |