Untested but this should do the trick. $('#theSelectorForTheButton').click( function() { var button = this; button.disabled = true; setTimeout( function() { button.disabled = false; }, 3000 }; });
Karl Rudd On Sun, Jan 4, 2009 at 2:22 PM, Commandos <chaab...@gmail.com> wrote: > > How can i disable a button for 3 seconds then after that enable it > when a use click a button (to avoid the user clicking without > stopping) > > > Button Enabled -> user click the button -> button is disabled for 3 > seconds -> button is enabled .