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.
Sys.UI.DomElement.removeCssClass(element, className);
Parameters
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.
// Remove CSS class
Sys.UI.DomElement.removeCssClass(eventElement.target, "blueBackgroundColor");
// Remove CSS class
Sys.UI.DomElement.removeCssClass(eventElement.target, "blueBackgroundColor");