disabled function in javascript code example
Example 1: javascript how to disable a button
document.getElementById("Button").disabled = true;
document.getElementById("Button").disabled = false;
$('#Button').attr('disabled','disabled');
$('#Button').removeAttr('disabled');
Example 2: javascript getelementbyid disable
document.getElementById("Button").disabled=false;
document.getElementById("Button").disabled=true;
Example 3: how to disable javascript
<noscript>
Javascript is disable in your browser
</noscript>