Sys.UI.DomElement containsCssClass Method

Gets a value that indicates whether the DOM element contains the specified CSS class. This member is static and can be invoked without creating an instance of the class.

var containsClass = Sys.UI.DomElement.containsCssClass(element, className);

Parameters

Term

Definition

element

The Sys.UI.DomElement object to test for the CSS class.

className

The name of the CSS class to test for.

Return Value

true if the element contains the specified CSS class; otherwise, false.

See Also

Reference

Sys.UI.DomElement Class

Other Resources

Language Reference