关于功能成功做点什么

时间:2016-08-04 17:38:02

标签: javascript jquery

我在完成其中一项功能后尝试做某事

$.when({
    $("#success_delete_close_btn").click(function(){
        $("#new_messaage").remove();
        $('#realone').css("display","");  

        $(".modal-content").append('<button type="button" style="width: 0; height:0; margin: 0; padding: 0;" id="close" data-dismiss="modal"></button>');
        setTimeout(function(){
            $('#close').click();
        }, 100);
    })
}).then(function() {
    $('#load_content').load('php/content/allcontent.php');
});

基本上我需要做的是在成功之后加载我的div但它必须在之后因为如果我在代码中添加它将加载div并且表格将像wtf一样发生我需要用id关闭我的模态=“356”但其中id =“365”......

模态对话框隐藏但模态背景保持...

但如果我不添加此部分,内容仍将在页面上显示。 我想在删除之前重新加载它......

0 个答案:

没有答案
相关问题