title: jQuery/JS table dump to cookie
body: <p>Basicly i have to read content of HTML table and save this date in cookie. And next red this cookie to refill this same table ater page reload (in first table is generated in jquery)</p>
  
  <p>So I have a HTML table</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
  &lt;td&gt;Name1&lt;/td&gt;
  &lt;td&gt;Value1&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;Name2&lt;/td&gt;
  &lt;td&gt;Value2&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>to save cookie i use</p>
  
  <pre><code>document.cookie = 'orderArray = '+table;
  </code></pre>
  
  <p>I have to save in cookie content of his cells in form:</p>
  
  <pre><code>name1:value1;name2:value2
  </code></pre>
  
  <p>If I will get this form of dump next I can explod in php to refill table. So, How make dump of this HTML table to this form or may some one have better idea?</p>