Home › Forums › JavaScript › Delaying a jquery event › Re: Delaying a jquery event
February 26, 2009 at 10:13 am
#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);
});
});