$('#some-button').attr("disabled","disabled"); setTimeout('enableButton()',5000); function enableButton(){ $('#some-button').removeAttr('disabled'); }