I want to display my chart when the mouse is hover some element. Everything works fine except I can’t stop the slideToggle returns its original position.
Once the mouse is “out-of-target” it contracts, but if the mouse still at the chart it should stay appearing.
$(document).ready(function () {
$("#test").hover(function () {
$("#chart_div").slideToggle('slow');
});
});
I made a jsFiddle for this question instead of pasting here the whole bunch of code.
EDIT
Here is a goal example.
You can do it by defining both mouseenter and mouseleave events like this sample:
Where your html structure should resemble this sample:
Live Example