jquery has attribute selector

The jQuery has attribute selector selects all elements that have a specified attribute. The syntax for this selector is as follows: