Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Delaying a jquery event Re: Delaying a jquery event

#54346
chazzwick
Member

Thanks for your replies. I tried both, Robski’s worked,but Chris’s didnt. Not sure if i got the code wrong. Heres what ive got:

Code:
$(document).ready(function() {

function doTheHide() {
$(“#reveal”).slideUp();
}

$(“#push”).click(function(){
$(“#reveal”).slideToggle();
});

$(“#container”).hover(function(){
// do nothing
}, function(){
setTimeout(“doTheHide()”,1000);
});
});