mikey3521 Posted December 16, 2008 Share Posted December 16, 2008 Hey right now I'm using JQUERY to just do a simple .toggle function to show and hide a div. The problem is once I hide it. then goto a new page it un-hides itself. So I guess I need to set a cookie.. but I'm have some troubles with that part. I know I'll have to use a jquery cookie plugin, if anyone could help me with a simple example of how to set a cookie and check it to see if the div is "hidden" or "viewable" that would be awesome. Thanks -Mike Quote Link to comment Share on other sites More sharing options...
rhodesa Posted December 16, 2008 Share Posted December 16, 2008 setting/getting cookies are pretty straight forward. i've never used the jQuery plugin for it before, but here is a simple example on w3schools: http://www.w3schools.com/JS/js_cookies.asp Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted December 16, 2008 Share Posted December 16, 2008 the link rhodesa gave is most likely the tidier way however if you really want the jQuery way here is a link for the jQuery cookie plugin http://plugins.jquery.com/project/cookie Quote Link to comment 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.