Try the following:
$("button[name=SaveAndDoOrder]").attr("disabled", "disabled");
This will disable the button with an attribute nameequal to nameOfButton.
$("button[name=SaveAndDoOrder]").removeAttr("disabled");
This will remove the disable attribute from the same button.
source
share