html - jquery LI's anchor hover problem [JSFiddle inside] -


please see jsfiddle pretty clear idea of problem - http://jsfiddle.net/peyyz/

the above sort of want. when hover on li.parent, ul.child menu fades in, fine. want sub menu remain open, unless user selects li.parent. tried messing mouseleave,but don't think that's i'm after.

the logic need is:

  1. if user hovers on li class parent, show it's ul.child

  2. if user moves mouse somewhere else isn't li.parent, ul.child should remain open.

  3. if user moves li.parent, li.parent ul.child should open, , open 1 should disappear.

thanks in advance

like this? http://jsfiddle.net/nzfz6/ had edit css part too.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -