本文介绍了如何在ajax确认对话框中使用bootstrap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的专家, 我想知道我在下面的脚本中如何以及在哪里使用引导程序对话框。 PLZ帮助我。
< script> $(' body')。delegate( #delete, click,function(){ var IdDelete = $( this )。attr( idd); if (确认( 您确定要删除此类别)){ { $ .ajax( { url: delt.php,类型: POST,数据:{删除: 1 , id:IdDelete },成功:function(){} }); $( this )。parents( .del_cat)。animate({opacity: hide}, slow); } } }); < / script>解决方案
(' body')。delegate( #delete , 点击,function(){ var IdDelete =
( this )。attr( idd); if (confirm( 您确定要删除此类别)){ {
.ajax( { url: delt.php,类型: POST, data:{删除: 1 , id:IdDelete },成功:function(){} });
Dear Experts, I want to know how and where i use bootstrap dialog box in following script. PLZ HELP ME.
<script> $('body').delegate("#delete","click",function(){ var IdDelete = $(this).attr("idd"); if(confirm("Are you sure to delete this category")){ { $.ajax( { url:"delt.php", type:"POST", data:{ deletes:1, id:IdDelete }, success:function(){} }); $(this).parents(".del_cat").animate({opacity:"hide"},"slow"); } } }); </script> 解决方案 ('body').delegate("#delete","click",function(){ var IdDelete =(this).attr("idd"); if(confirm("Are you sure to delete this category")){ {.ajax( { url:"delt.php", type:"POST", data:{ deletes:1, id:IdDelete }, success:function(){} });更多推荐
如何在ajax确认对话框中使用bootstrap
发布评论