I have an e-mail field, and a confirm e-mail field. I need to validate both of them to make sure their values match.
Is there a way to add a rule to match those two fields?
You could use the equalTo method:
$('#myform').validate({     rules: {         email: 'required',         emailConfirm: {             equalTo: '#email'         }     } }); 
                        You can also do this on the second field:
 class="required email" equalTo='#email' 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With