Javascript form validation without nested if-else while showing only one error

后端 未结 0 1982
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 08:41

I am trying to validate a form and want to check whether fields are empty. And if more than one fields are empty it will show error for only the first one of them

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