I am trying to set a cookie using jQuery:
$.cookie("testCookie", "hello"); alert($.cookie("testCookie"));
But when I load my page, I get the error message "$ .cookie is not a function." Here is what I know:
- I downloaded the jQuery cookie plugin here .
- I am contacting jQuery and THEN cookie plugin.
- Both jQuery and jQuery.cookie load correctly with 200 OK.
I looked at several other answers ( here and here and others), to which most people suggested renaming the cookie.js file. I renamed the jquery.cookeee.js cookie, but the results remain the same.
Any ideas on what's going on here?
If this helps, I am building a web application in MVC 4.
javascript jquery cookies asp.net-mvc
ElliotSchmelliot Aug 02 '13 at 19:14 2013-08-02 19:14
source share