Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

Sys.UI.Control toggleCssClass Method

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

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




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

Use the toggleCssClass method to remove the CSS class from a control if the element contains the CSS class. If the element does not contain the CSS class, the toggleCssClass method adds the CSS class.

© 2015 Microsoft