The jQuery [name] Has Attribute Selector will check if the element have the specified attribute to determine whether to put it in selected set.
[name] selector Syntax$('[attribute]')
[name] selector ExamplesFollowing 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
