show div for a set time, then hide it
- by Patrick
Im using jquery for various things on my site, but one thing im not sure how to do, is have it show an element, then wait X seconds, and hide the element.
$('#form').ajaxForm(function() {
$('#cartcontents').fadeOut("fast").load('cart.php').fadeIn("fast");
});
That's the JavaScript that I'm using now. How could I have it (when the form submits) display the div #notice for 5 seconds, then fadeOut?