155
rated 0 times
[
158]
[
3]
/ answers: 1 / hits: 16307
/ 15 Years ago, wed, december 9, 2009, 12:00:00
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
?
More From » jquery