Send array in JS to php
<p>I'm trying to do something similar to this <a href="http://stackoverflow.com/questions/2793891/send-selects-values-in-array">question</a>.
I want to send to the server the id's of the selected checkboxes. I'm using jquery only because the example. my ajax code is pure JS.</p>

<p>This is my code:</p>

<p>js:</p>

<pre><code>function DeleteTest(ind)
 {
   if (confirm('Are you sure you want to delete this test?'))
      {
    ​   $(function() {
       var testdel = $('input[name=deletetest]').serialize();
       alert(testdel);
       window.open('test.php' + "?"+testdel,'_self');
           }   ​);
        return true;}
         else { return false;}
 }
  oCell.innerHTML = "&lt;input type='checkbox' name='deletetest' value='"+ ind +   "')';&gt;"; // create checkbox for each row in ajax
</code></pre>

<p>html:</p>

<pre><code>&lt;form id="checkboxform" action="test.php" method="post"&gt;
&lt;tbody id="auditTblBody"&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;input type="button" value="Submit AJAX Request" onclick="DeleteTest()" /&gt;
&lt;/form&gt;
</code></pre>

<p>With this code i get only one value with GET.<code>testdel</code> is fine. (i.e <code>deletetest=477&amp;deletetest=476</code>) my problem is how to send this information.</p>

<p>thank you!</p>
