dojo/dom-prop¶
Project owner: | Eugene Lazutkin |
---|---|
since: | V1.7 |
Contents
This module defines the core dojo DOM properties API. The convention for the return variable for this module is
domProp
.
Features¶
AMD Features¶
-
Gets a property on an HTML element.
-
Sets a property on an HTML element.
Legacy features are set in dojo/_base/html.
Examples¶
The following is an example of how to retrieve the foo
property of a DOM node.
require(["dojo/dom-prop"], function(domProp){
var propValue = domProp.get("myNode", "foo");
});
See also¶
- dojo/dom - Core DOM API
- dojo/dom-attr - DOM Attribute API
- dojo/dom-class - Dojo DOM Class API
- dojo/dom-style - DOM Style API
- dojo/_base/html - Legacy API aliases
API Reference: dojo.dom-prop