jquery ajax bootsrap关于模式弹出窗口

jquery ajax bootsrap关于模式弹出窗口,jquery,ajax,twitter-bootstrap,Jquery,Ajax,Twitter Bootstrap,当我用class.btn edit单击按钮时,会显示模式,但当我提交ajax请求后,如果我单击模式按钮,则不会显示模式。我需要刷新页面,它才能再次工作 $(".btn-edit").click(function(){ $('#edit-profile').modal('show'); }); $(".update-form").submit(function(s){ s.preventDefault(); var website_name = $('input[n

当我用class
.btn edit
单击按钮时,会显示模式,但当我提交
ajax
请求后,如果我单击模式按钮,则不会显示模式。我需要刷新页面,它才能再次工作

 $(".btn-edit").click(function(){
    $('#edit-profile').modal('show');
});


$(".update-form").submit(function(s){
    s.preventDefault();

    var website_name = $('input[name=website_name]').val();
    var website_url = $('input[name=website_url]').val();
    var type = $('#type option:selected').val();
    var category = $('#category option:selected').val();
    var sells = $('input[name=sells]').val();
    var location = $('input[name=location]').val();
    var payment = $('input[name=payment]').val();
    var description = $("textarea#message").val();

    $('#edit-profile').modal('hide');

    $.ajax({
        type: "POST",
        url: "advertiser/update",
        data: {
            _token: token, 
            website_name: website_name, 
            website_url: website_url, 
            type: type, 
            category: category, 
            sells: sells, 
            location: location, 
            payment: payment, 
            description: description
        },

        success: function(data) {
            $('.wrapper').html(data);
        }
        ,
        error: function(data) {

        }
    });

});

控制台中是否有错误?能否粘贴html?#edit profile inside.wrapper tag吗?@aarjithn是的类wrapper div覆盖页面Im中的所有div使用laravel在我的布局上放置wrapper tag.main很抱歉回复太晚控制台错误日志:Uncaught TypeError:$(…)。模式不是函数找出错误所在的行,然后找出错误原因