Jquery Validate Plugin. equalTo

sahanz
sahanz used Ask the Experts™
on
Hi,

I'm using jquery validate plugin to validate a form, so for passoword confirm I use equalTo
admin_pass: {
				minlength: 5
			},
			admin_pass_confirm: {
			required: false,
				minlength: 5,
				equalTo: "#admin_pass"
			}

Open in new window


The password field is actually not required, but I cant make the confirm field not required. If user type something in password field, can I make the confirm field required?

Thank You
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial