您好,我在第二次ajax调用中遇到麻烦,并未在下面更改datepicker的datesdisabled值。有没有办法解决它?谢谢
$("#select_roomtype").on("change",function(e){
$.ajax({
url:registerpost_url,
type:"POST",
headers:{'X-CSRF-Token':$('input[name=_token]').val()},
data: {roomtype:$(this).val()},
cache: false, // To unable request pages to be cached
success:function(data) {
$("#sandbox-container .input-group").datepicker({
format:"yyyy-mm-dd",
autoclose: true,
datesDisabled:data,
startDate: today,
endDate:endday,
maxViewMode: 1
});
}
});
});*