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