Making a JQuery UI Menu close itself after a delay of mouseout -


i have situation, represented in jsfiddle : http://jsfiddle.net/j2y9h/1/

to reproduce problem :

  1. hover on menu open menu
  2. hover on submenu item without clicking
  3. get mouse out of menu
  4. wait (and don't click anywhere)

you'll notice menu never gets closed.

i close menu after let's say, 5 seconds have elapsed without mouse coming menu or submenus.

how?

thanks :)

that being said, got lil' familiar jquery-ui , forged this fiddle.

i used:

$('#menu').menu(); $('#menu').hover(function(){return false;},function () {     $('#menu').menu("collapseall", null, true); }); 

for javascript.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -