disable html button on click code example
Example 1: javascript disable button
document.getElementById(BUTTON_ID).disabled = true;
Example 2: enable html button
$('#Button').prop('disabled', true);
document.getElementById(BUTTON_ID).disabled = true;
$('#Button').prop('disabled', true);