button disabled by id code example
Example 1: jquery add disabled to button
$("#button").attr("disabled", true);
Example 2: html button disabled
<button type="button" disabled>This button is disabled</button>
$("#button").attr("disabled", true);
<button type="button" disabled>This button is disabled</button>