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 removeCssClass Method

Removes a CSS class from a DOM element. This member is static and can be invoked without creating an instance of the class.

Syntax

Sys.UI.DomElement.removeCssClass(element, className);

Term

Definition

element

The Sys.UI.DomElement object to remove the CSS class from.

className

The name of the CSS class to remove.

Remarks

If the element does not include a CSS class, no change is made to the element.

Example

The following example shows how to use the removeCssClass method. This code is part of a larger example found in the DomElement class overview.

cs

// Remove CSS class
 Sys.UI.DomElement.removeCssClass(eventElement.target, "blueBackgroundColor");

vb

// Remove CSS class
 Sys.UI.DomElement.removeCssClass(eventElement.target, "blueBackgroundColor");