JQuery remove .append after 5 seconds

Posted by RussP on Stack Overflow See other posts from Stack Overflow or by RussP
Published on 2010-05-04T14:03:48Z Indexed on 2010/05/04 14:08 UTC
Read the original article Hit count: 241

Filed under:
|

Oh gosh here a lot today - oops

Folks, best way to do this:

$j('.done').append('Your services have been updated');

(that bits done)

but then remove the append after say 5 seconds so that if a person resubmits a form(allowed) the append does not continue adding the text? i.e updated once "Your services have been updated", twice would read "Your services have been updated Your services have been updated" but I would only want Your services have been updated to show once

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about timeout