title: How to use cookies with jQuery and custom url parameters
body: <p>I have three buttons that add parameters to my url - something like this: </p>
  
  <pre><code>&lt;a class="click1"&gt;/a&gt; = ?param=grid
  &lt;a class="click1"&gt;/a&gt; = ?param=smallgrid
  &lt;a class="click1"&gt;/a&gt; = ?param=largegrid
  </code></pre>
  
  <p>These buttons shows three different layout - the first one is set as default.</p>
  
  <p>I want to place the users choice in a cookie - but I need the url only to be added to the relevant pages. </p>
  
  <p>The url looks like this: </p>
  
  <pre><code> /products/Computers/Notebooks?param=list
  </code></pre>
  
  <p>so I want the cookie to execute the choice based on the url has /products or even better - a body class if possible. </p>
  
  <p>I have added the jquery.cookie.js plugin to my site - but i cant figure out how to use it. </p>