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