【发布时间】:2010-03-04 09:07:59
【问题描述】:
我已经为此工作了几天,但我不明白,所以我决定在这里问。我真的很难追踪问题出在我的代码中。这里是我的代码:
$(".editME").click(function(){
var element = $(this);
var show = element.attr("id");
$.get('index.php',{option:'myReports', task: 'edit', id: show},function(data)
{
$('body').html(data);
$("#editFile").show(1000);
});
return true;
});
当我单击编辑按钮时,它会显示整个页面并在其中显示插件datepicker。问题是它不显示日历:
$(function() {
$("#datepicker").datepicker({
changeMonth: true,
changeYear: true
});
});
当我将 URL 更改为 index.php?option=myReports&task=edit.. 时出现日历。
我的问题:如何在执行 editME 时加载日历?即使我返回 true,它也不会执行。
【问题讨论】:
标签: jquery datepicker jquery-ui-datepicker