[jQuery] Selector help needed

[jQuery] Selector help needed


Here's my code:
$(document).ready(function(){
    $('#menulinks a').hover(function(){
        setTimeout(function(){
            $(this).stop().animate({
                top : '40px',
                paddingTop : '40px'
            });
        }, 1000);
    });
});
Before I added a timeout, (this) sufficed. With the timeout set, (this) did
not select the hovered link. I tried another selector and it worked fine.
How can I specify (this) for this situation?
--
View this message in context: http://www.nabble.com/Selector-help-needed-tp23289341s27240p23289341.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.