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");
});
Thats the js im using now. How could i have it (on submit) display the div #notice
for 5 seconds, then fadeOut?