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

前端 未结 5 526
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 07:29
5条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 08:17

    
        
        
    
    

    Worked fine. just changed onsubmit() to onclick(). as the function of both in this situation is same.

提交回复
热议问题