[jQuery] Re: Calling/forcing hover()

2008-09-05 Thread Cerebral
It worked with the mouseenter syntax. Thank you! Example: Hover $('div').hover( function () { alert($(this).attr('id')); }, function () {} ); $('div').trigger('mouseenter'); On Sep 5, 4:42 am, Nathan Hammond <[EMAIL PROTECTED]> wrote: > Try $(elem).tri

[jQuery] Re: Calling/forcing hover()

2008-09-04 Thread Nathan Hammond
Try $(elem).trigger('hover'); or $(elem).trigger('mouseenter'); and see if that works out for you. Nathan Hammond On Sep 4, 7:50 pm, Cerebral <[EMAIL PROTECTED]> wrote: > Hi, > is there a way to directly call the hover() or mouseover event ? > I know I could use a separate function as the paramet