Monday, 19 August 2013

fadeout after 5 secs jquery

fadeout after 5 secs jquery

I have the below jquery function to hide DIV on click. How can I add
fadeout effect after 5 secs if the user doesn't click? I would like to
have both.
$(".fadeOutbox").click(function () {
$(this).fadeOut('slow');
});

No comments:

Post a Comment