1. disable
<button id="buttonId" disabled>......</button>
$("#buttonId").attr("disabled", true);
2. enable
$("#buttonId").removeAttr("disabled");
1. disable
<button id="buttonId" disabled>......</button>
$("#buttonId").attr("disabled", true);
2. enable
$("#buttonId").removeAttr("disabled");