Problem with jquery validate compare with MVC
I have a problem with the compare validator when running under Microsoft MVC3 and jquery 1.5.x
I have two password fields that are validated to enforce the same response (password and re-type password). With jQuery 1.4.2 the compare validator works correctly, with jQuery 1.5.x the validator always fires.
Unfortunately, I don't have a public server where I can demonstrate the problem, however, here is the source code for the two input elements:
| <input data-val="true" data-val-length="&#39;Password&#39; must be at least 6 characters long." data-val-length-min="6" data-val-required="Please enter your password" id="Registration_Password" name="Registration.Password" type="password" /> |
|
| <input data-val="true" data-val-equalto="The password and confirmation passwords do not match" data-val-equalto-other="*.Password" data-val-required="Please confirm your password" id="Registration_ConfirmPassword" name="Registration.ConfirmPassword" type="password" /> |
|
The script is generated via the MVC HTML Helper methods using Data Annotations on the model.
Any advice would be appreciated.