I am trying to set a cookie using jQuery:
$.cookie(\"testCookie\", \"hello\"); alert($.cookie(\"testCookie\"));
But when I load my page, I
You should add first jquery.cookie.js then add your js or jQuery where you are using that function.
jquery.cookie.js
When browser loads the webpage first it loads this jquery.cookie.js and after then you js or jQuery and now that function is available for use