Confirm before a form submit

前端 未结 7 1333
孤城傲影
孤城傲影 2020-12-05 07:38

I have searched for an answer but couldn\'t find one!

I have a simple form,

7条回答
  •  一生所求
    2020-12-05 08:22

    The correct event is onSubmit() and it should be attached to the form. Although I think it's possible to use onClick, but onSubmit is the correct one.

提交回复
热议问题