I am trying to set a cookie using jQuery:
$.cookie(\"testCookie\", \"hello\");
alert($.cookie(\"testCookie\"));
But when I load my page, I
I had this problem as well. I found out that having a $(document).ready function that included a $.cookie in a script tag inside body while having cookie js load in the head BELOW jquery as intended resulted in $(document).ready beeing processed before the cookie plugin could finish loading.
I moved the cookie plugin load script in the body before the $(document).ready script and the error disappeared :D