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
Post a Comment