[jQuery] Jquery Validate access form elements whose name contains a period or special chars [validate]
Hi
In my validator rules and messages I'm trying to figure out how to
specify a field name that contains a period.
rules: {
account.usernameEmail: {
required: true,
email: true
}
}
This will throw an error right away:
missing : after property id
[Break on this error] account.usernameEmail: { \n
Also, does the name and id of a form element have to be the same for
this plugin to work?
I simply can not remove the "." in the field name as it is used on the
server for form backing object validation (via spring mvc).
Thoughts?
Thanks