hasAttribute Method
Returns whether or not the Element has the specified attribute.

Syntax
var bExists = Element.hasAttribute(sAttributeName);

Parameters
sAttributeName Required. The name of the desired attribute.

Return Value
One of the following values:
true The Element has the specified attribute.
false The Element does not have the specified attribute.

Applies To
Element
[24]7 Inc.| Terms of Service| Privacy Policy| General Disclaimers