javascript - Jquery Cookie return undefined [only in ie] -
iam using jquery cookie .cookie return undefined in ie (only 1 machine).help me resolve issue.
js code
var cookie = {}; cookie["version"] = 1; cookie["columnstate"] = { "width": 100, "hidden": true }; cookie["columnstate1"] = { "width": 200, "hidden": false }; $.cookie("state", json.stringify(cookie), { expires: 365 }); $("#getcookie").click(function () { alert($.cookie("state")); });
html
<button id="getcookie">get cookie</button>
this working me on ie8
var cookie = {}; cookie["version"] = 1; cookie["columnstate"] = { "width": 100, "hidden": true }; cookie["columnstate1"] = { "width": 200, "hidden": false }; jquery.cookie("state", json.stringify(cookie), { expires: 365 }); alert(jquery.cookie("state"));
i using jquery.cookie.js v1.4.1. ie version trying.
Comments
Post a Comment