I need to store an array in a jQuery cookie, any one help me please?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Still not exactly sure what you need but i hope this will help.
This is a sample that will allow you to access the items on any page, its just a sample!
It uses the cookieName to identify it across the pages.
So on any page you can get the items like this.
Adding items to the cookieList
Getting all the items as an array
Clearing the items
You can add additional things like push and pop quite easily.
Again hope this helps.
EDIT
See bravos answer if you having issues with IE