The setEnabled() method enables the previously disabled button, so it becomes clickable again. Recommended to use in button's Client After event.
Syntax
ajax.setEnabled();
Arguments
No arguments.
Return value
No return value.
Example
Let's say you have added a Custom button where the Server event needs to be delayed by 5 seconds. And to prevent users from clicking the button while the delay takes place, you have disabled the button.
Add the following code to the Client After event to enable the button:
ctrl.setEnabled();
See also:
•JavaScript API: AJAX helper object > setDisabled()
•JavaScript API: AJAX helper object