Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have the following code for hiding and showing a DIV control

JavaScript
   <script type="text/javascript">
       $(document).ready(function () {
           $('#multipleaccpanel').hide();

           $('a#multipleaccounttrigger').click(function () {
               $('#multipleaccpanel').toggle(400);

           });


       });
</script>


my problem is when I clicked on the bottom which shows the div, it takes me back at the top of the page. Is there any command that will maintain the scroll position
Posted

1 solution

Hope this guides you in the right direction

https://forum.jquery.com/topic/save-scroll-position[^]
 
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