Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // You can seriaize the data as JSON, like this:
- $.cookie("property-name", JSON.stringify($("#foo").data()));
- // Get data from the cookie:
- $("#foo").data(JSON.parse($.cookie("property-name")));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement