Javascript JS确认对Jquery模式对话框的更改

Javascript JS确认对Jquery模式对话框的更改,javascript,jquery,modal-dialog,Javascript,Jquery,Modal Dialog,我现在有一个模态删除确认,我想将确认更改为使用jQuery模态。这是我的: $('.stdelete').live("click", function() { var ID = $(this).attr("id"); var uid = $("#uid").val(); var dataString = 'msg_id='+ ID + '&uid=' + uid; if (confirm("Sure you want to deletes this up

我现在有一个模态删除确认,我想将确认更改为使用jQuery模态。这是我的:

$('.stdelete').live("click", function() {
    var ID = $(this).attr("id");
    var uid = $("#uid").val();
    var dataString = 'msg_id='+ ID + '&uid=' + uid;

    if (confirm("Sure you want to deletes this update? There is NO undo!")) {
        $.ajax({
            type: "POST",
            url: "delete_message_ajax.php",
            data: dataString,
            cache: false,
            success: function(html) {
                $("#stbody"+ID).slideUp();
            }
        });
    }
有人有主意吗? 感谢您的帮助。

$('.stdelete').live(“单击”,函数(){
    $('.stdelete').live("click",function()  {
        var ID = $(this).attr("id");
        var uid = $("#uid").val();
        var dataString = 'msg_id='+ ID + '&uid=' + uid;
        var d = $('<div />').append('Sure you want to deletes this update? There is NO undo!').dialog({
            buttons: {
                'no': function() {
                    $(this).dialog('close');
                },
                'yes': function() {
                    $.ajax({
                        type: "POST",
                        url: "delete_message_ajax.php",
                        data: dataString,
                        cache: false,
                        success: function(html){
                            $("#stbody"+ID).slideUp();
                        }
                    });
                    $(this).dialog('close');
                }
            }
        });
        $('body').append(d);
    });
var ID=$(this.attr(“ID”); var uid=$(“#uid”).val(); var dataString='msg_id='+id+'&uid='+uid; var d=$(“”).append('确定要删除此更新吗?没有撤消!')。对话框({ 按钮:{ “否”:函数(){ $(this.dialog('close'); }, “是”:函数(){ $.ajax({ 类型:“POST”, url:“删除消息\u ajax.php”, 数据:dataString, cache:false, 成功:函数(html){ $(“#stbody”+ID).slideUp(); } }); $(this.dialog('close'); } } }); $('body')。追加(d); });
您使用的是jQuery UI模式还是其他插件?我使用的是jQuery引导。。有什么想法吗?你可能应该在你的问题和标题中包括这一点,因为这是基本信息。如果使用jquery bootstrap呢?那么如果我在你的代码中使用jquery bootstrap,我该怎么做呢?