Browser crashed - tickboxes array to Ajax (PHP)
<p>When I click on the Add button, the browser (chrome) crashed.</p>

<p>I am trying to send the array of tickboxes (value) to ajax (PHP).</p>

<p>See the following code:</p>

<pre><code>&lt;input type="checkbox" name="option[]" value="0"&gt; Small
&lt;input type="checkbox" name="option[]" value="1"&gt; Medium
&lt;input type="checkbox" name="option[]" value="2"&gt; Large
&lt;input type="checkbox" name="option[]" value="3"&gt; X-Large

&lt;input id="ButtonAdd" type="button" value="Add" /&gt;
</code></pre>

<p>jQuery:</p>

<pre><code> $("#ButtonAdd").click(function() {  
  var optionsz = $("input:checkbox[name='option\\[\\]']");
  $.post("ajax.php", { optionsz:optionsz },
   function(data)  {
     console.log(data)
   });
 });
</code></pre>

<p>PHP:</p>

<pre><code>&lt;?php
 print_r($_POST);
?&gt;
</code></pre>
