dojo.hasAttr
<script src="../../js/dojo.js"></script>
defined in dojo/_base/html.js
Returns true if the requested attribute is specified on the given element, and false otherwise.
parameter | type | description |
---|---|---|
node | DomNode|String | id or reference to the element to check |
name | String | the name of the attribute |