title: Passing array in HTML form with Jquery
body: <p>I'm trying to use Jquery to pass an array to an HTML form as follows:</p>
  
  <pre><code>$('form#'+ID1+' input#myArray').val(theArray);
  </code></pre>
  
  <p>Then my form is as follows</p>
  
  <pre><code>&lt;input type="hidden" id="myArray" name="myArray"&gt; 
  </code></pre>
  
  <p>I then serialize before calling an Ajax request:</p>
  
  <pre><code>var dataString=$('form#grid1').serialize();
  </code></pre>
  
  <p>But on the receiving script I get:</p>
  
  <pre><code>Uninitialized string offset: 1
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>