1
工作我使用這個代碼的Javascript日期選擇器是不是在阿賈克斯
window.onload = function(){
new JsDatePick({
useMode:2,
target:"report_date_start",
dateFormat:"%d-%M-%Y"
});
new JsDatePick({
useMode:2,
target:"report_date_end",
dateFormat:"%Y-%m-%d"
});
};
function dwnyear_click(id)
{
var urls=siteurl+"?action=Date_range&id="+id;
$.ajax({
type: "POST",
url: urls,
success: function(msg)
{
$("#dwn_year").html(msg);
$("#dwnyear_dropdown").css("display","none");}
});
}
<input name="report_date_start" type="text" id="report_date_start" />
<input name="report_date_end" type="text" id="report_date_end" />
我需要加載文本框可以通過AJAX來形成,在日期選擇器不能正常工作。我在我的網站中使用了相同的日期選擇器,沒有任何問題。如何解決這個問題?我已經添加了ajax代碼。 Onsuccess返回文本域
哪裏的ajax代碼? – amd
@Ahmad我添加了ajax代碼 – Ramya