javascript disable this button code example
Example 1: html button disabled
<button type="button" disabled>This button is disabled</button>
Example 2: javascript disable button
document.getElementById(BUTTON_ID).disabled = true;
<button type="button" disabled>This button is disabled</button>
document.getElementById(BUTTON_ID).disabled = true;