stopping form submit if the validation fails.

后端 未结 7 2229
青春惊慌失措
青春惊慌失措 2020-12-05 21:17

I am validating the dates in below function. If the validation fails, then the form should not get submitted. I tried returning false in form onsubmit but it still gets subm

相关标签:
7条回答
  • 2020-12-05 22:22

    In my case i used pattern in input field and also gave maxlength.

    What worked with me was, remove Length attribute from input field

    0 讨论(0)
提交回复
热议问题