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