Home / Code Snippets / jQuery Code Snippets / Disable / Re-enable Inputs

Disable / Re-enable Inputs

Disable:

$("#submit-button").attr("disabled", true);

Re-enable:

$("#submit-button").removeAttr("disabled");