matt schrieb:
<input id="number" name="user.number"
title="Please enter a number with at
least 3 and max 15
characters!" />
Using validation rules on this field
rules: {
number: {
required:true,
minLength:3,
maxLength:15,
number:true
}....
When the field is named as "name="number" validation works properly
however, if the field is named as name="user.number" I am not sure how
to apply rules to the field without resorting to putting attributes on
the input tag.
rules: {
user.number: {
required:true,
minLength:3,
maxLength:15,
number:true
}....
seems invalid.
Quote the property-key: "user.number": { ... }
Jörn