how to set and get cookie using jquery

This article gives some basic knowledge about how set and get cookie value using $cookie. And $cookie to work you need to include this js file jquery.cookie.js

You can set “ip” in cookie using below code:
$.cookie('ip', '123.123. 12.1', { expires: null, path: '/' });
You can get cookie “ip” value using below code: