look at this please http://jsfiddle.net/xhpqa/4/
the sub_menu div keeps hiding if mouseover it because it has no height (to expand with content if i specify height or min-height and max-height it doesn’t expand)
look at this please http://jsfiddle.net/xhpqa/4/ the sub_menu div keeps hiding if mouseover it because
Share
add this line in your code it will serve your purpose. please check i have added some css styles at proper locations:
EDIT:
since you are using slideUp and slideDown function of jQuery.
when you mouse over/ out quickly the height is not properly set to your sub-menu div.
slideUp happens when your element is
display:block(i.e visible) and its height starts from actual height til it becomes zero (0).slideDown happens when the height of the element is started to increase from zero (0) to it actual height and it is
display:none(i.e hidden).