Results 1 to 21 of 21
Nov 29, 2012, 05:42 #1
- Join Date
- Feb 2008
- Preston, Lancashire
- 72 Post(s)
- 1 Thread(s)
Using jQuery Cookies to store the body class.
I am trying to achieve something without using a server-scripting language, instead I wish to use jQuery.
I hope to use jQuery cookies to store the body class and/or ID and then put reprint this on the other html pages it might be linked it. This is to be used with my style switcher will be work by changing the body class to either "green, orange, purple" etc.
So the purpose is to store the already dynamic body class as a cookie, and then output it back to the inside pages in order to preserve that body class(s) throughout the entire site.
I really have no idea how to go about this. I don't normally ask for such technical support on SitePoint as I would prefer to do the leg work. Unfortunately I did not find anything online which covered to topic well.