Description
The [attribute] selector selects all elements with the specified attribute, regardless of the value.
This selector has the form:
$("[attribute]")
Parameter | Description |
---|---|
attribute | (required) Specifies the attribute to find |
Description
The [attribute *= value] selector selects elements that have the specified attribute with a value containing the a given substring.
This selector has the form:
$("[attribute *= value]")
Parameter | Description |
---|---|
attribute | (required) Specifies the attribute to find |
value | (required) Specifies the value to find |
Description
The [attribute |= value] selector selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-).
This selector has the form:
$("[attribute |= value]")
Parameter | Description |
---|---|
attribute | (required) Specifies the attribute to find |
value | (required) Specifies the value to find |
Description
The [attribute ~= value] selector selects elements that have the specified attribute with a value containing a given word, delimited by spaces.
This selector has the form:
$("[attribute ~= value]")
Parameter | Description |
---|---|
attribute | (required) Specifies the attribute to find |
value | (required) Specifies the value to find |
Description
The [attribute $= value] selector selects elements that have the specified attribute with a value ending exactly with a given string. The comparison is case sensitive.
This selector has the form:
$("[attribute $= string]")
Parameter | Description |
---|---|
attribute | (required) Specifies the attribute to find |
string | (required) Specifies the string the value should end with |
Description
The [attribute = value] selector selects elements that have the specified attribute with a value exactly equal to a certain value.
This selector has the form:
$("[attribute = value]")
Parameter | Description |
---|---|
attribute | (required) Specifies the attribute to find |
value | (required) Specifies the value to find |
Description
The [attribute != value] selector selects elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.
This selector has the form:
$("[attribute != value]")
Parameter | Description |
---|---|
attribute | (required) Specifies the attribute to find |
value | (required) Specifies the value to find |
Description
The [attribute ^= value] selector selects elements that have the specified attribute with a value beginning exactly with a given string.
This selector has the form:
$("[attribute ^= value]")
Parameter | Description |
---|---|
attribute | (required) Specifies the attribute to find |
value | (required) Specifies the value to find |