I use jquery for different things on my website, but one thing I'm not sure how to do is show the element and then wait X seconds and hide the element.
$('#form').ajaxForm(function() { $('#cartcontents').fadeOut("fast").load('cart.php').fadeIn("fast"); });
This is the JavaScript I'm using now. How can I get it (when the form is submitted) displays the #notice div for 5 seconds, then fadeOut ?
javascript jquery
mrpatg
source share