disable button in html
snippet in html

javascript disable button

user1895

//disable the button
document.getElementById(BUTTON_ID).disabled = true;
//reable the button
document.getElementById(BUTTON_ID).removeAttribute('disabled');

html button disabled

user1158

<button type="button" disabled>This button is disabled</button>

enable html button

user1053

$('#Button').prop('disabled', true);

disable button in html

user9013


  
    <button type="button" disabled>Click Me!</button>