jquery基础教程-jquery创建一个确认对话框

发布时间:2020-04-19 09:00:44 作者:renyiqiu
来源:网络 阅读:307

jquery基础教程-jquery创建一个确认对话框


$(document).ready(function(){
$('.item .delete').click(function(){
varelem = $(this).closest('.item');
$.confirm({
'title': 'Delete Confirmation',
'message': 'You are about to delete this item.
It cannot be restored at a later time! Continue?',
'buttons': {
'Yes': {
'class': 'blue',
'action': function(){
elem.slideUp();
}
},
'No': {
'class': 'gray',
'action': function(){}// Nothing to do in this case. You can as well omit the action property.
}
}
});
});
});



文章详情(附demo和下载)



推荐阅读:
  1. jquery中easyui对话框怎么用
  2. jquery基础教程 - 第一章 JQUERY入门

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

jquery插件 jquery对话框 jquery弹出框

上一篇:AIX 巡检脚本 erikxue

下一篇:11.python并发入门(part5 event对象)

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》