I'll just start with the example of my problem:
<form>
<input name="course[0][name]" />
<input name="course[0][type]" />
<input name="course[1][name]" />
<input name="course[1][type]" />
...
...
</form>
obs: this is, of course, simplified.
So...how can i validate those since i can't predict the name? Is there a way to use regular expressions or something? utopic example:
rules: {
/course\[([0-9]+)\]\[name\]/: {
required: true
}
}
I couldn't find the solution in the documentation since its a bit confusing. thank you (: