title: send an array with jquery $.ajax
body: <p>i am trying to pass an array to ajax.Here is the code (productOptions is the ARRAY)</p>
  
  <pre><code>data: { action:'add',tblID : tblID, option:productOptions},
  </code></pre>
  
  <p>as far as i know whith this approach (using objects) jquery do the job BUT i dont get the option parameter at all (EXPLAIN BELOW).</p>
  
  <p>NOTICE : </p>
  
  <pre><code>var productOptions=new Array();
      productOptions[0]="test1";
      productOptions[1]="test2";
  </code></pre>
  
  <p>with the above array i get the productOptions</p>
  
  <pre><code>var productOptions=new Array();
          productOptions['color']="test1";
          productOptions['size]="test2";
  </code></pre>
  
  <p>i DONT get the productOptions</p>
  
  <p>Any help plz</p>