disable a default property code example
Example 1: html button disabled
<button type="button" disabled>This button is disabled</button>
Example 2: javascript getelementbyid disable
//javascript getelementbyid disable
//Enable a button
document.getElementById("Button").disabled=false;
//Disable a button
document.getElementById("Button").disabled=true;