Created
July 17, 2013 11:29
-
-
Save ijy/6019700 to your computer and use it in GitHub Desktop.
Match two fields with the jQuery Validate plugin and the equalTo method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#myform').validate({ | |
rules: { | |
email: 'required', | |
emailConfirm: { | |
equalTo: '#email' | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Match two fields with the jQuery Validate plugin and the equalTo method.