Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Control object > Methods

JavaScript API: Control object > remove CSS Class

Scroll Prev Next More

 

Removes the CSS class from the control.

Syntax

ctrl.removeClass(className);

Arguments

className

a CSS class name. Example: 'highlight'.

Return value

No return value.

Example

Remove the 'highlight' class from the control using the JavaScript OnLoad event:

 

var ctrl = Runner.getControl(pageid, 'Make');
ctrl.removeClass('highlight');

 

See also:

JavaScript API: Control object > getControl()

JavaScript API: Control object > add CSS Class

JavaScript API: Control object > addStyle()

Events: JavaScript OnLoad

JavaScript API: Control object

JavaScript API