Wednesday, 13 February 2013

Cookies In JQuery

Creating Cookie
 $.dough("cookiename","cookievalue");

Reading Cookie

$.dough("cookiename");

Deleting Cookie
 $.dough("cookiename","remove");


Create JSON cookie
1
2$.dough("jsonCookie", "{'someName':'someValue','someOtherName':'someOtherValue'}");
3
Read JSON cookie
1
2$.dough("jsonCookie").someName;
3

No comments:

Post a Comment