Box based on fancybox!',type:'info',onOk:function(){
alert("yes");
}});
});
$("#success").click(function () {
$.tConfirm.open({body:'Save success!',type:'success',onOk:function(){
alert("yes");
}});
});
$("#error").click(function () {
$.tConfirm.open({body:'Some fields are wrong!',type:'error',onOk:function(){
alert("yes");
}});
}); $("#warning").click(function () {
$.tConfirm.open({body:'Someone login,it\'s not real user!',type:'warning',onOk:function(){
alert("yes");
}});
});
});
Figure 1. common confirm
Figure 2. confirm Box with layer
Figure 3. error Box
Figure 4. success Box
Figure 5. warning Box
原文链接:https://www.f2er.com/jquery/48547.html