Posting and validating a PHP array using jQuery/AJAX
<p>I have a form that I am trying to post to php using jQuery ajax, and it needs to be validated first.</p>

<p>The field looks like this:</p>

<pre><code>&lt;select name="inquirymodule[]" id="inquirymodule[]"&gt;
&lt;option value="" selected&gt;Select an Inquiry Module&lt;/option&gt;
&lt;option value="1"&gt;Module 1&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>Additional selectors can be added with jQuery to allow as many selections to be made as needed, and all values posted in the inquirymodule variable.</p>

<p>I have read elsewhere that I think I can post this variable using the value </p>

<pre><code>jQuery('#inquirymodule').serialize()
</code></pre>

<p>But I have validation running on the select, to make sure something is selected before it is submitted.  Prior to making this an array variable, this worked:</p>

<pre><code>jQuery('#inquirymodule').bind('change', function (event) {
    wizard.validate(true);
});
</code></pre>

<p>However I know that adding '<code>[]</code>' to the variable name will break the javascript here.</p>

<p>Any advice?</p>
