Reputation: 615
I have a problem with cookie.When using this i have got an error like this
TypeError: $.cookie is not a function [Break On This Error] $('#' + $.cookie("activediv")).parent().parent().addClass('menuHeaderActive');
javascript file is
$(document).ready(function () {
var checkCookie = $.cookie("activediv");
///$('#' + $.cookie("activediv")).parent().parent().addClass('menuHeaderActive');
alert("a");
});
I have the plug in for this cookie.How can I solve this problem?
Upvotes: 0
Views: 67
Reputation: 14060
You probably haven't loaded the Jquery cookie plugin. If you want to use that plugin you'll need to download the js file and link it in your HTML (after the main jQuery file)
Upvotes: 1