jQuery [attribute*=value] Selector (original) (raw)

Last Updated : 11 Jul, 2025

**jQuery ("[attribute*=value]") Selector is used to select all elements with attribute specified by attribute parameter that contains the word specified by the value parameter.

**Syntax:

$("[attribute*='value']")

**Parameters: This selector has two parameters.

**Example 1: In this example, we are using jQuery [attribute*=value] Selector.

HTML `

Document




`

**Output:

**Example 2: Here is another example of jQuery [attribute*=value] Selector.

HTML `

. Document
First div
First div
First div
Second Div
Second Div
Change Color

`

**Output: