如何在ajax确认对话框中使用bootstrap

编程入门 行业动态 更新时间:2024-10-18 20:27:35
本文介绍了如何在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

本文发布于:2023-11-17 12:38:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1610029.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   对话框中   ajax   bootstrap

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!