CSS/Jquery How can I display a div directly under button?
- by user342391
I have a button that when hovered displays a div.
How can I postion this div to appear directly under the button when displayed???
<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>