0
我需要在ajax加載的內容中應用datepicker的驗證。但驗證不工作的加載content.Please幫助如何在ajax加載的頁面中應用歐芹
/腳本/
function get_period(feestype)
{
jQuery.ajax({
url:"../js/lib/datepicker/js/bootstrap-datepicker.js",
datatype:"script"
}).done(function(){
jQuery.ajax({
url:"../js/lib/parsley/parsley.min.js",
datatype:"script"
}).done(function(){
jQuery.ajax({
url:"../js/pages/form_validate.js",
datatype:"script"
}).done(function(){
$.ajax({
type: "GET",
url: "feesperiod.php",
data: "feestype="+feestype,
success: function(msg){
$("#period_div").html(msg).find('.datepicker').datepicker({ inline:true });
}
});
});
});
});
}