私のページにはリンクがあり、onclick()
「datepicker0」という名前の日付入力テキストを含む div を表示するイベントを書きました。また、この入力テキストの下に div id ="bContent" があります。
以下のスクリプトを書き、「bContent」のデータに日付フィルターを適用したいのですが、うまくいきません! 助けてください...
$('#datepicker0').live('focus', function() {
$(this).datepicker().datepicker('show');
true;
})
$('#datepicker0').live('change', function() {
ShowMathesByDateFilter($(this).val());
})
ShowMathesByDateFilter()
機能は次のとおりです。
function ShowMathesByDateFilter(Fdate)
{
if (Fdate=="")
{
$("#bContent").html('<div class="bContent" dir="rtl"> no result are fond! </div>');
return;
}
else
{
$.ajax({
url:'/includes/GetMtch.php',
data:"Fdate="+Fdate,
success: function(data){
//alert(data); // this is work
$("#bContent").html(data); //but this line doesn't work.
}
})
}
}