how do i pass the last clicked item to another page using jquery? I have this toggle menu in my web app. what i want to happen is when i clicked a link in my toggle menu it will go to the another page but it will retain the selected toggle menu open. Is this possible?
here’s my toggle menu code for jquery
<script>
$(document).ready(function(){
$(".product-contents").hide();
$("div.product-header").click(function(){
$(this).toggleClass("active").next().slideToggle("fast");
});
});
</script>
Use a cookie to store its state.
There is a jQuery cookie plugin.