javascript - Match two form fields with jQuery -


i' m using example: http://codepen.io/kosukehorai/pen/bprdev create validation form. added field "confirm password". need validate both password , confirm password make sure values match.

and in function govalidate() added rule

 password1_repeat:              regex: /(?=.*\d)(?=.*[a-z])(?=.*[a-z]).{8,}/,           equalto: "please enter same password above" 

but can't correct validation. there way add rule match 2 fields?


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -