Please enable JavaScript to view this site.

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

JavaScript API: Control object > clear()

Scroll Prev Next More

 

Sets "" as the control value, and if the control was not previously validated, removes the message that it was not validated.

Syntax

ctrl.clear();

Arguments

No arguments.

Return value

No return value.

Example

Clear the control value using the JavaScript OnLoad event:

 

var ctrl = Runner.getControl(pageid, 'Model');
ctrl.clear();

See also:

JavaScript API: Control object > getControl()

JavaScript API: Control object > clearEvent()

JavaScript API: Control object > hide()

JavaScript API: Control object > reset()

JavaScript API: Control object > setDisabled()

Events: JavaScript OnLoad

JavaScript API: Control object

JavaScript API