JS get element id array
<p>My html code is</p>

<pre><code>&lt;select id="child[1]" name="child[1]"&gt;
&lt;option value="1"&gt;1&lt;/option&gt;
&lt;option value="2"&gt;2&lt;/option&gt;
&lt;option value="3"&gt;3&lt;/option&gt;
&lt;option value="4"&gt;4&lt;/option&gt;
&lt;/select&gt;
&lt;select id="child[2]" name="child[2]"&gt;
&lt;option value="1"&gt;1&lt;/option&gt;
&lt;option value="2"&gt;2&lt;/option&gt;
&lt;option value="3"&gt;3&lt;/option&gt;
&lt;option value="4"&gt;4&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>My JS code not working</p>

<p>JS code is </p>

<pre><code>alert(jQuery("#child").length);
</code></pre>

<p>Can you  please help me how can I get the child array, I want to send the array through AJAX</p>
