jQuery: Can I call delay() between addClass() and such?

Posted by serg555 on Stack Overflow See other posts from Stack Overflow or by serg555
Published on 2010-03-24T17:46:28Z Indexed on 2010/03/24 17:53 UTC
Read the original article Hit count: 276

Filed under:
|

Something as simple as:

$("#div").addClass("error").delay(1000).removeClass("error");

doesn't seem to work. What would be the easiest alternative?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about delay