jQuery Tutorial Tutorials - jQuery [name="value"] selector

jQuery [name="value"] selector

The jQuery Attribute Equals Selector [name="value"] is used to select elements that have a specific attribute with a value exactly equal to the given string value.It is case sensitive.

jQuery [name="value"] selector Syntax

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

jQuery [name="value"] selector Examples

example:

$("input[name='newsletter']") //Find all [INPUT] elements that [name] attribute is [newsletter]

Following is a simple example which makes use of Attribute Equals Selector.
This would select the all elements exactly with a title of script and hightlight them.
It is case sensitive. So only one element is selected.
Try now

Date:2019-08-17 23:38:29 From:www.Lautturi.com author:Lautturi