to disable a button in jquery code example Example: jquery add disabled to button $("#button").attr("disabled", true);