Skip to content

Instantly share code, notes, and snippets.

@auggernaut
Created September 9, 2013 22:20
Show Gist options
  • Save auggernaut/6502291 to your computer and use it in GitHub Desktop.
Save auggernaut/6502291 to your computer and use it in GitHub Desktop.
check if passwords match
if ($("#reg-password2").val() === $("#reg-password1").val()) {
} else {
$("#register-message").show().html("Passwords do not match.");
$("#register-message").addClass("text-error");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment