I did pagination using jQuery and now I would like to save the selected state / page to a cookie. I would need to keep tab-id , offset and limit values .
I know that I can write to a cookie as follows:
$.cookie("example", "foo");
And then read it:
$.cookie("example");
But how can I store all these three things in a cookie? And especially read? For example, if I only need to know the tab id value from a cookie, how can I get this if I have multiple cookie values?
All help / information on how to make a saved page state (pagination) is also welcome.
And jQuery site is off, I checked that first
: p Thank you.
source
share