How can I test all inputs at one time on form validation, prevent the default submission and add classes on the inputs in the best manner

前端 未结 0 1344
野的像风
野的像风 2021-02-09 10:01

I am looking for the best way to test all of my inputs at the same time, prevent the form submission and display my border-color: red on each input. Any help would be appreciate

相关标签:
回答
  • 消灭零回复
提交回复
热议问题