Here is the current situation:
We have two divs,
<script type='text/javascript' src='jquery.min.js'></script>
<div onmouseover="$(this).next('#mydiv').show();" onmouseleave="$(this).next('#mydiv').hide();" style="width:50px;height:50px;background:#000000;color:#ffffff;">hover</div>
<div id="mydiv" onmouseleave="$(this).hide();" style="display:none;">content</div>
The issue I am facing is that,
$(this).next('#mydiv').hide();
triggering on mouseleave is causing problems with focusing on the second div. I want the second div to hide only if the mouse hasn't entered it after leaving the first div, creating a dilemma.
I am using a tooltip plugin and cannot nest the second div inside the first one for a solution, as that would create bigger issues for me.