Onsubmit still submits when returning false

后端 未结 2 1582
无人及你
无人及你 2020-12-21 06:08

I\'m having a problem with a simple html login page I made, where when I submit the login form with invalid credentials the form still submits, even though my validation met

2条回答
  •  忘掉有多难
    2020-12-21 06:29

    In validateForm() function, you've used two undefined variables(userLbl and passLbl). Define value for the variables and check.

提交回复
热议问题