I have a button that, when hovered over, reveals a hidden div element.
Is there a way to position this div directly beneath the button once it is revealed?
<script type="text/javascript>
$(document).ready(function(){
$(".plans").hover(function() {
$("#planssubnav").show("slow");
}, function(){
$("#planssubnav").hide("slow");
});
});
</script>
<a href="/plans" style="font-size:14px;" class="plans fg-button fg-button-icon-right ui-state-default ui-corner-all"><span class="ui-icon ui-icon-circle-triangle-s"></span>Plans</a>
<div id="planssubnav" style="display:none">
<h1> content</h1>
</div>