Bootstrap 多选仅在第一次打开 - 在 ajax 之后它不起作用

Bootstrap multiselect open only the first time - After ajax it doesn't work

我尝试将 bootstrap multiselect 与 jquery ajax 一起使用。当执行 ajax 多 select 按钮时,它不起作用。你可以在这里看到问题:http://www.doyleia.com/anazitisi-ergasias in the last multiselect.

ajax代码:

function runAjax(tags, contracts, educations, towns) {

$(document).ajaxStart(function(){
    $("#wait").css("display", "block");
});
$(document).ajaxComplete(function(){
    $("#wait").css("display", "none");
});
$.ajax({
    url: 'http://www.doyleia.com/anazitisi-ergasias?' + tags + '&' + contracts + '&' + educations + '&' + towns,
}).done(function(data){
    // destroy I used it because builded again the multiselect button after ajax
    $('.multi-boot-select').multiselect('destroy');
    var $html = $(data);
    //hide within that object
    $html.find('.form-for-hide').hide();
    $html.find('p.hidden').removeClass('hidden');
    // insert the object
    $('div.load-jobs').html($html);
});

}

我已经像下面那样更改了 ajax,现在可以使用了:

function runAjax(tags, contracts, educations, towns) {

$(document).ajaxStart(function(){
    $("#wait").css("display", "block");
});
$(document).ajaxComplete(function(){
    $("#wait").css("display", "none");
});
$.ajax({
    url: 'http://www.doyleia.com/anazitisi-ergasias?' + tags + '&' + contracts + '&' + educations + '&' + towns,
}).done(function(data){
    // destroy I used it because builded again the multiselect button after ajax
    var $html = $(data);
    //hide within that object

    var finalGet =  $html.find('.row-to-take');

    //$html.find('.form-for-hide').hide();
    $html.find('.hidden.alert.alert-danger').removeClass('hidden');

    // insert the object
    $('div.load-jobs').html(finalGet);
});

}