how to develop yes no confirmation using jquery

前端 未结 3 944
遇见更好的自我
遇见更好的自我 2021-01-04 18:55

How to develop confirmation dialog with yes no button using jquery or any other method ? I need that confirmation when I click on submit button.

3条回答
  •  醉梦人生
    2021-01-04 19:12

    I have a solution, it is working for me.

         $.alerts.okButton = ' Yes ';
         $.alerts.cancelButton = ' No ';                  
         jConfirm('Are you sure??',  '', function(r) {
           if (r == true) {                    
              //Ok button pressed...
           }  
         });
    

提交回复
热议问题