Hi there. I have a menu which is toggle-able with jquery. By default it's hidden until the menu link is clicked. What I've been asked to do it make it so that when the user clicks it open it stays open from page to page. I'm assuming some sort of ajax would be needed to store a variable server side... but I have no idea how to really go about it.

this is my toggle function:

            $(document).ready(function(){
                $(".trigger").toggle(function(){
                    $(".panel").animate({width:200});
                    $(".adminishell").animate({left:200});
                },function(){
                    $(".panel").animate({width:0});
                    $(".adminishell").animate({left:0});
                })

.panel is my menu, so when a user clicks on a link to a new page I want .panel to stay open on that new page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.