Please help!!! I am trying to set this cookie but it is not working. I get an error message that says "Uncaught TypeError: cannot call method 'cookie' of undefined". I dont know why it is saying this. I had this before i added a path and domain so i know that is not what is causing the problem.
my code is
<script src="jquery-2.0.3.js"></script>
<script src="jquery-cookie/jquery.cookie.js"></script>
<script type="text/javascript">
$.noConflict();
//<![CDATA[
var word = "hello";
var cook = $.cookie("newAr", "word", {expires: 3, path: '/', domain: 'http://localhost/test.html'});
$.cookie("newAr");
document.write("step 1");
//]]>
</script>