Error processing SSI file
LEADTOOLS JavaScript (Leadtools)

HasClass Method

Show in webframe
HTML or SVG element to check.
The class string.
Checks an HTML or SVG element for the given class string.
Syntax
 function Leadtools.LTHelper.hasClass( 
   element ,
   className 
)

Parameters

ParameterTypeDescription
elementElementHTML or SVG element to check.
classNamestringThe class string.

Return Value

TypeDescription
boolean true if the element has the className; else, false.
Remarks

Like AddClass 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