The hasAttribute
method returns a Boolean indicating whether the field has the specified attribute.
hasAttribute( name )
Argument | Description |
---|---|
name
|
(string) The name of the attribute. |
(Boolean). A Boolean specifying if the field has the specified attribute.
|