Sys.UI.Control removeCssClass Method

Removes a CSS class from the HTML Document Object Model (DOM) element that the control is attached to.

var a = new Sys.UI.MyControl(domElementObj);
a.removeCssClass(className);

Term

Definition

className

A string that contains the name of the CSS class to remove.

Use the removeCssClass method to remove a CSS class from a control. If the CSS class has already been removed from the control, removeCssClass makes no changes to the control.

Show: