how to disabled 10 buttons in js code example Example: how to disable all buttons in javascript $("input[type=button]").attr("disabled", "disabled");