I'd like to have a jquery fadeOut() restart whilst it's in the middle of fading out.
I have the following statement
$('#status').html('<div style="padding:5px; margin:0 0 0 200px;"><img src="/images/done.png" /> ' + message + '</div>').show().fadeOut(2000);
When a user performs an action, this statement gets run. for the 2 seconds it's running, the user can perform another action which calls this statement.
At the moment, the fadeOut has to complete before the fadeOut animation will play again.
Is there a way to make the fadeOut simply restart from the beginning again?