我需要在ajax加载的内容中应用数据报警器的验证。但是,验证不适用于加载的content.Please帮助。
/脚本/
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 });
}
});
});
});
});
}发布于 2014-11-15 18:56:30
.done(function()您没有返回任何东西,您不能使用来自bootstrap-datepicker.js,parsley.min.js的任何函数
https://stackoverflow.com/questions/26946816
复制相似问题