title: jquery cookie append values through loop
body: <p>I am currently trying to loop through an array and append id's to my current jquery cookie but cant see to get it working the way I'd like to.</p>
  
  <pre><code>$.cookie('sampleCookie', 'true');
  $.cookie.json = true;
  var arrayTest=[{id: 'id1', key: 'true'},{id: 'id2', key: 'true'},{id: 'id3', key: 'true'}];
  
                      for (var i = arrayTest.length - 1; i &gt;= 0; i--) {
  
                          var currentId = arrayTest[i].id;
                          $.cookie('sampleCookie' + '&amp;' + currentId);             
                      }
  </code></pre>
  
  <p>This code block doesnt seem to produce the output I am looking for.</p>
  
  <p>I'd like the cookie to look like "true&amp;id1&amp;id2&amp;id3"</p>