How to use onsubmit() to show a confirmation if there are multiple submit buttons on the same form?

前端 未结 5 541
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 07:29
5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-04 08:09

    You could bind to onclick instead of onsubmit - see below.

    
    
                                     
                  
提交回复
热议问题