-
Notifications
You must be signed in to change notification settings - Fork 0
Methods
atk edited this page Jun 17, 2011
·
2 revisions
Without useful Methods, the Selector's results would be pretty worthless. The most important Methods are already available and the prototype object containing them is stored at t._ for ease of extension through Plugins.
The following Methods can be used out of the box:
t(selector).a(name); // returns the value of the "name" attribute of the first selected node
t(selector).a(name, value); // set the attribute of all selected nodes to value
t(selector).a({ name1: value1, name2: value2 }); // sets multiple attributes at once
All Normalisation filters are stored in t._.nf for easy extension through Plugins, each an array of getter and setter.