In the code snippet below, I have a div with id="mybutton" and a hidden div with id="mydiv":
<head>
<script>
$(document).ready(function(){
$("#mybutton").hover(function(){
$("#mydiv").fadeIn();
}, function(){
$("#mydiv").fadeOut();
});
});
</script>
</head>
<body>
<div id="mybutton">Show</div>
<div id="mydiv" style="display:none;">Hidden content..</div>
</body>
I am looking to modify the behavior so that "mydiv" remains visible even when the mouse is over it (after initially hovering over mybutton).