Skip to content

Instantly share code, notes, and snippets.

@ijy
Created July 17, 2013 11:29
Show Gist options
  • Save ijy/6019700 to your computer and use it in GitHub Desktop.
Save ijy/6019700 to your computer and use it in GitHub Desktop.
Match two fields with the jQuery Validate plugin and the equalTo method.
$('#myform').validate({
rules: {
email: 'required',
emailConfirm: {
equalTo: '#email'
}
}
});
@ijy
Copy link
Author

ijy commented Jul 17, 2013

Match two fields with the jQuery Validate plugin and the equalTo method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment