[jQuery] Can we store array of objects into cookie
Hi,
I'm having trouble storing array of objects into cookie like
var arr = [];
arr.push({index:1,name:"vijay"});
arr.push({index:2,name:"krish"});
When I'm trying to store array of objects into cookie usin g jquery cookie
plugin like
$.cookie("arrCookie",arr);, It's not storing array object but a string as
[object Object],[object Object] indeed.
So, when I'm trying to retrieve the value in cookie its returning a string
[object Object],[object Object] which is frustrating.
Can anyone of you know a way to store array of objects into cookie.
Thanks in advance.
Vijay
--
View this message in context: http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12885643
Sent from the JQuery mailing list archive at Nabble.com.