Easy Tutorial
❮ Event Click Event Toggle ❯

jQuery [attribute*=value] Selector

jQuery Selectors

Example

Select all <input> elements with a name attribute that contains the string "nation":


Definition and Usage

The [attribute*=value] selector selects every element with a specified attribute whose value contains the specified string.


Syntax

Parameter Description
attribute Required. Specifies the attribute to look for.
value Required. Specifies the string to be contained in the value.

jQuery Selectors

❮ Event Click Event Toggle ❯