Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

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.

Syntax

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

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.