• Home
  • Q&A
  • How to invoke the mouseenter event programmatically via jquery
 
7
0
0

How to invoke the mouseenter event programmatically via jquery

RajviaStackOverflow
December 07, 2011
3 score
7 answers

In my html structure I have one anchor tag element which has hoverIntent plugin event attached.

     $('a').hoverIntent(function(event){// some code to show popup;})

Whenever I hover on the anchor tag manually it does some ajax call and brings back the data from service and shows popup.

I want to trigger the mouseenter/hover/mousemove (anything which can bring the popup) from code (without any manual action)

I tried basic jquery functions like

   $('selector').trigger('hover') and
   $('selector').trigger('mouseenter')

But nothing worked, Is this possible to invoke the hover/mouseenter functionality without users interruption?

Answers

Discussion

-