Thanks!
On Dec 15, 11:59 am, Mike Alsup <mal...@gmail.com> wrote: > > I'm using jQuery.hover for a dropdown menu and I want to add a slight > > delay to mouseOut functions but I can't figure out how to pass the > > jQuery(this) reference into the setTimeout() function... can this be > > done? > > > jQuery('li.drop').hover( > > function(){ > > jQuery(this).addClass('show'); > > }, > > function(){ > > var t = setTimeout( function(){ > > jQuery(this).removeClass('show'); }, > > 1000); > > } > > ); > > jQuery('li.drop').hover( > function(){ > jQuery(this).addClass('show'); > }, > function(){ > var $this = jQuery(this); > setTimeout( function(){ $this.removeClass('show'); }, 1000); > } > )