title: Retrieve jQuery Cookie value
body: <p>Example, I have this cookie:</p>
  
  <pre><code>$.cookie("foo", "500", { path: '/', expires: 365 });
  </code></pre>
  
  <p>How do I get the value of that cookie and put it into a variable?</p>
  
  <p>For example (I know this is not correct):</p>
  
  <pre><code>var foo = $.cookie("foo").val();
  </code></pre>