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

前端 未结 5 545
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 07:29
5条回答
  •  一个人的身影
    2021-02-04 08:03

    
        
        
    
    

    I wouldnt try to create a submit but rather just a button that has a onclick="function()" and then use javascript to set a variable to see how many times they have clicked it and a alert();

    hope this helps :D

提交回复
热议问题