jQuery Tutorial plus Question:

How to read, write and delete cookies in jQuery?

Tweet Share WhatsApp

Answer:

★ To deal with cookies in jQuery we have to use the Dough cookie plugin.
★ Dough is easy to use and having powerful features.

Create cookie:
$.dough("cookie_name", "cookie_value");

Read Cookie:
$.dough("cookie_name");

Delete cookie:
$.dough("cookie_name", "remove");

Download jQuery PDF Read All 91 jQuery Questions
Previous QuestionNext Question
Explain the difference between $(this) and 'this' in jQuery?Is jQuery better than javascript?