JQuery Sidebar Cookie Question
-
I’m making a theme that has collapsible/expandable sidebar sections. I’m using jQuery for this process.
Since I’m still a newbie to jQuery, I was wondering if anyone knew how to set a cookie to keep the sidebar sections set the same after the page is reloaded or the user comes back later.
Here’s the code I’m using to manage the collapsing/expanding:
// Expand and collapse sidebar $(document).ready(function() { $('#sidebar').find('h2').click(function() { $(this).next().slideToggle(10); }); });
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘JQuery Sidebar Cookie Question’ is closed to new replies.