HTML API

addClass

Adds the specified class to an element.
Throws an exception when the application cannot find a match for the element or the class attribute is different. See HTML live edit for further information.

tilepieces.core.htmlMatch.addClass(element,className);

Parameters

element
DOM element
className
A string to be added from the class attribute of the matching element.

Return Value

None.