title: Remember Background Color/Colour With Cookie
body: <p>i have been looking all over the internet and cant seem to find an article that is relevant to my needs.
  I have never worked with cookies before but i thought this might be a simple task...
  Turns out i was quite wrong :/</p>
  
  <p>Basically i have a colour picker and i would like for the browser to remember the colour set each time it is set so that when they come back to the site the background colour is the same as when they left.</p>
  
  <p>I am using this colour picker <a href="http://lindekleiv.bitbucket.org/colorpicker/" rel="nofollow">http://lindekleiv.bitbucket.org/colorpicker/</a></p>
  
  <p>With this code</p>
  
  <pre><code>$(document).ready(function(){
      $('#colorpicker').colorPicker({
      colorChange: function(e, ui) {
      $('body').css({backgroundColor: ui.color})
      }
      });
  
      $('#colorpicker').colorPicker('setColor', 0, 0, 6, 1);
  })
  </code></pre>
  
  <p>Thanks in advance for any help :)
  Chris</p>