Question

Is jquery.cookie.js compatible with jquery-1.10.1 version? I get the following error:

Object function (e,t){return new x.fn.init(e,t,r)} has no method 'cookie'

Though I checked the below links -

$.cookie is not a function

Error: $.cookie is not a function

jQuery $.cookie is not a function

none helped to solve the issue. Is there any site from where I will get details about jquery.cookie.js compatibility with JQuery versions? Appreciate suggestions.Thanks in advance.

Was it helpful?

Solution

Works fine for me with the latest version of $.cookie + jQuery 1.10.1:

$.cookie('foo', true);
console.log($.cookie('foo'));

http://jsfiddle.net/h2xHP/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top