0

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.

Community
  • 1
  • 1
ambikanair
  • 4,004
  • 11
  • 43
  • 83

1 Answers1

2

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/

Johan
  • 35,120
  • 54
  • 178
  • 293