seventheyejosh Posted May 27, 2009 Share Posted May 27, 2009 Hello all i'm needing to make a menu that holds its state throughout the page clicks. So all options start with a class of closed. when the page is changed tho i need any of the ones that were open to be auto assigned the open class when the page loads. I posted here cause i figured you guys might now of a jquery menu system that'll help me. Or if you can give me a really simple javascript chunk. all i need is onclick run a function that makes a cookie called, say menu-id_of_item then when the page loads just do like an if isset... class = open. i dont need the actual value of the cookie i dont think. just if its set. Quote Link to comment https://forums.phpfreaks.com/topic/159876-menu-that-holds-state/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.