【发布时间】:2017-10-18 17:46:03
【问题描述】:
谁能告诉我为什么我的 submit() 没有触发?
如果我尝试删除 alertify.confirm() 只需使用我的 submit() 即可。
$('.myBtn').click(function(){
alertify.confirm("Confirmation",function(e){
if(e){
$(this).closest('form').submit();
}else{
alertify.error('Nope');
}
});
});
【问题讨论】:
-
你能添加你的代码sn-p吗?
-
您的按钮是按钮按钮、提交按钮还是只是按钮。
标签: jquery submit confirm alertify