how to disable all buttons in javascript

JavaScript
//disable the button
document.getElementById(BUTTON_ID).disabled = true;
//reable the button
document.getElementById(BUTTON_ID).removeAttribute('disabled');$("input[type=button]").attr("disabled", "disabled");
Source

Also in JavaScript: