title: Uncaught TypeError: cannot call method 'cookie' of undefined
body: <p>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.</p>
  
  <p>my code is </p>
  
  <pre><code>&lt;script src="jquery-2.0.3.js"&gt;&lt;/script&gt;
  &lt;script src="jquery-cookie/jquery.cookie.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $.noConflict();
  //&lt;![CDATA[
  
  var word = "hello";
  
  
  var cook = $.cookie("newAr", "word", {expires: 3, path: '/', domain: 'http://localhost/test.html'});
  
  $.cookie("newAr");
  document.write("step 1");
  
  //]]&gt;
  &lt;/script&gt;
  </code></pre>