Javascript form validation with password confirming

后端 未结 3 1360
梦毁少年i
梦毁少年i 2020-12-28 09:34

I am trying to write a registration page and I am having the hardest time.

Registration:&l

3条回答
  •  执笔经年
    2020-12-28 10:30

     if ($("#Password").val() != $("#ConfirmPassword").val()) {
              alert("Passwords do not match.");
          }
    

    A JQuery approach that will eliminate needless code.

提交回复
热议问题