I have this html structure used for a dropdown menu :
<ul>
<li><ul>...</ul></li>
<li>...</li>
</ul>
and the css:
li ul {display : none;}
li:hover ul {display : block;}
(this is base structure only).
When I select an item from the menu I'm loading something with ajax and I would like to close the opened submenu.
I've tried with jquery to hide the parent of the clicked element ("li" is the clicked element and "ul" is the parent), the element hides but it does not appear again at mouseover on it's parent. (because the li:hover ul css rule has changed).
Any sugestions about how I could handle this situation?