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.Control addCssClass Method

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

Syntax

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

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

Return Value

None.

Remarks

Use the addCssClass method to add a CSS class to a control. If the CSS class has already been added to the control, addCssClass makes no changes to the control.