OK so I search and tried few examples but none of them worked. I am using Jquery toggle()
to show a DIV
on click. It works fine, except I want to show it on hover and keep it open if mouse pointer is inside the Div.
Here is my Code:
Jquery:
$(function() {
$('#HCLink').click(function() {
$('.HCContent').toggle('slow');
return false;
});
});
HTML:
<li><a href="#" id="HCLink">HEATING & COOLING | </a> </li>
<div class="HCContent" style="display:none;">
<p>Div Content...</p>
</div>
Tried to change .click
to .hover
but didn't work.