hasAttribute
The Element.hasAttribute() method returns a Boolean value indicating whether the specified element has the specified attribute or not.
The Element.hasAttribute() method returns a Boolean value indicating whether the specified element has the specified attribute or not.