button disabler on click code example Example: On click, disable button $("#btnSubmit").attr("disabled", true);