jquery validation, element name in array format couldn't be set in rules
<p>I have an element like</p>

<pre><code>&lt;input type="text" id="no_of_days" name="admin_setting[no_of_days]" class="txtbox" maxlength="50" /&gt;
</code></pre>

<p>when I validate like,</p>

<pre><code>jQuery("form").validate({

     rules :{   
        admin_setting[no_of_days] : "required"
      },
      messages :{

        admin_setting[no_of_days] : "Please enter the No of Days"

      }

   });
</code></pre>

<p>It throws the error. Please provide me the way to add the rules inside the validate() function for the element which has the name in array form like "admin_setting[no_of_days]".</p>

<p>I don't want to use .rules() function, as more number of fields to be added in validate() function, instead of calling rules() function for every element.</p>
