Javascript Form Submission After Validation

前端 未结 4 883
花落未央
花落未央 2021-01-17 05:35

This script functions mostly how I would like it to: alert when a radio checkbox has not been selected. However, if all buttons are selected I need it the form to be submitt

4条回答
  •  遥遥无期
    2021-01-17 05:45

    You have a return before the form submit. That may be part of the problem.

    Also, you are missing an else on the final if statement.

提交回复
热议问题