jQuery Tutorial Tutorials - jQuery [name] selector

jQuery [name] selector

The jQuery [name] Has Attribute Selector will check if the element have the specified attribute to determine whether to put it in selected set.

jQuery [name] selector Syntax

$('[attribute]')

jQuery [name] selector Examples

Following is a simple example which makes use of jQuery Has Attribute Selector.
It would select all list item elements with an id and hightlight them.
Try now

Date:2019-08-18 00:55:26 From:www.Lautturi.com author:Lautturi