Error processing SSI file
LEADTOOLS JavaScript (Leadtools)

AddClass Method

Show in webframe
HTML or SVG element to add the class to.
The class string.
Adds the specified class string to the HTML or SVG element's current class list.
Syntax
 function Leadtools.LTHelper.addClass( 
   element ,
   className 
)

Parameters

ParameterTypeDescription
elementElementHTML or SVG element to add the class to.
classNamestringThe class string.
Remarks

AddClass will first internally call HasClass to avoid duplicate work.

Like HasClass and RemoveClass, this method also works with browsers that do not support the HTML element classList property. This method will throw an error if the element is null or undefined.

See Also

Reference

LTHelper Object
LTHelper Members

Error processing SSI file