Ok, I apparently didn't try hard enough. You just need to wrap the element name in quotes.
It's simple... Here's the solution for others who hit this bump: rules: { "account.usernameEmail": { required: true, email: true } } On Jan 10, 12:26 pm, phil <pkra...@gmail.com> wrote: > 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