how to disable and enable button with jquery onclick code example Example: How disable button jquery $( "button" ).prop( "disabled", true );