I am trying to validate an array using jQuery Validate plugin. The array has a numeric key and the key number is not sequential. That means, it could be
cause[0] or cause[2] or cause[7]
Html code
<form id="myform" action="submit.php">
<select name="cause[0]" id="cause" class="cause">
<option value="">Cause to Support</option>
<option value="993">Medical</option>
<option value="355">Children</option>
</select>
<select name="cause[2]" id="cause" class="cause">
<option value="">Cause to Support</option>
<option value="993">Medical</option>
<option value="355">Children</option>
</select>
<input type="submit" name="submit" value="submit" />
</form>
Demo -- https://jsfiddle.net/squidraj/afgmqf9g/3/
It's not validating and submitting the form to submit.php file. In firebug error console there is no error as well.
Any help is highly appreciated.