Reset disabledProperty

Reset 对象参考手册Reset Object

Examples

Example 1

Disable the reset button:

<script>

document.getElementById("rst").disabled=true;

</script>

Output:


Try it Yourself »


Definition and Usage

The disabled property sets or returns whether the reset button is disabled.

Disabled elements are neither usable nor clickable. You can set the disabled attribute until some other condition is met (for example, a checkbox is selected, etc.).

Syntax

Set the disabled property:

element.disabled=true|false

Return the disabled property:

element.disabled


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the disabled property


Reset 对象参考手册Reset Object Other Extensions