HTML DOM disabled Property
Complete Reset Object Reference
Definition and Usage
The disabled property sets or returns whether or not a reset button should be
disabled.
Syntax
resetObject.disabled=true|false
|
Example
The following example disables the reset button when clicking on it:
<html>
<head>
<script type="text/javascript">
function disableButton()
{
document.getElementById("reset1").disabled=true
}
</script>
</head>
<body>
<form>
<input type="reset" id="reset1" onclick="disableButton()" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Alert id,
type, and value of a reset button + disable button
Complete Reset Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|