Click here to Skip to main content
15,915,509 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all ,

I am trying to place a submenu correctly in asp.net using jquery.It is working great in IE but not in chrome :

Here is my code:

XML
<script type="text/javascript">
        var p = $("#b");
        var pos = p.position();
        var sub = document.getElementById("men");
        sub.top = pos.top + 70;
        sub.left = pos.left;

        $("#men").offset({ left: sub.left, top: sub.top });

    </script>


Please somebody tell me how to place it correctly in chrome.
Posted

1 solution

For all people having this problem.I solved it using :

$(window).load(function() {

});

before the script.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900