jquery validator - form still getting submitted even when invalid

后端 未结 1 808
长情又很酷
长情又很酷 2021-01-24 23:23

I have a few fields on a form with basic rules and the validator plugin does well when filling out the form itself. Submitting it, however, there is a problem because it still s

相关标签:
1条回答
  • 2021-01-25 00:05

    Change the id attribute to name and try

    <input name="name" type="text" placeholder="Name" required>
    

    Demo: Fiddle

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