Input Submit disabled Property - Find out if a Submit button is disabled or not: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Submit

Description

Input Submit disabled Property - Find out if a Submit button is disabled or not:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<input type="submit" id="mySubmit">

<button onclick="myFunction()">Test</button>

<script>
function myFunction() {//from w  w w .j ava2 s .  c o m
    document.getElementById("mySubmit").disabled = true;
}
</script>

</body>
</html>

Related Tutorials