HTML DOM Submit disabled property
Submit objects Examples
Example 1
Disable the submit button:
<script>
document.getElementById("sbmt").disabled=true;
</script>
document.getElementById("sbmt").disabled=true;
</script>
Output:
try it"
Definition and Usage
disabled property sets or returns whether to disable the confirmation button.
Disabled elements are neither available, nor click. You can set the disabled property until meet certain other conditions are met (such as selecting a checkbox, etc.).
grammar
Set the disabled attribute:
element .disabled=true|false
Returns disabled properties:
element .disabled
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support disabled property
Submit objects