Php 要发布的JQuery日期选择器

Php 要发布的JQuery日期选择器,php,jquery,mysql,jquery-plugins,Php,Jquery,Mysql,Jquery Plugins,我以前问过这个问题,但我的意思没有被理解 我的情况是,我需要网页上的开始和结束JQuery日期选择器,它必须#1-结束日期必须始终大于开始日期#2-日期范围必须从MySQL发布数据,才能在网页上创建数据表 我如何更改下面的脚本(上面需要完成1项任务),以便通过PHP将MySQL中的信息发布回HTML DIV 请参见我在网页上构建的示例 1。 $(函数(){ var start1=$('#start1'); var end1=$('#end1'); start1.datepicker({onClo

我以前问过这个问题,但我的意思没有被理解

我的情况是,我需要网页上的开始和结束JQuery日期选择器,它必须#1-结束日期必须始终大于开始日期#2-日期范围必须从MySQL发布数据,才能在网页上创建数据表

我如何更改下面的脚本(上面需要完成1项任务),以便通过PHP将MySQL中的信息发布回HTML DIV

请参见我在网页上构建的示例

1。
$(函数(){
var start1=$('#start1');
var end1=$('#end1');
start1.datepicker({onClose:clearEndDate});
end1.datepicker({beforeShow:setMinDateForEndDate});
函数setMinDateForEndDate(){
var d=start1.datepicker('getDate');
if(d)返回{minDate:d}
} 
函数clearEndDate(dateText,inst){
end1.val(“”);
} 
}) 

您的站点上还有一个jQuery功能,您没有包括:

$('#button').click(function() {
    $.post('report.php', {
        start: $('#start1').val(), 
        end: $('#end1').val()
    }, 
    function(data) {
       $('#genreport').html(data).show();
    });
});
您可能已经知道这一点,但还需要重新格式化并过滤/验证report.php页面中的日期输入。我希望这有帮助。直到我把它贴出来,我才意识到这个问题太老了。哈!忽略这一点,因为它可能已经在工作了

$('#button').click(function() {
    $.post('report.php', {
        start: $('#start1').val(), 
        end: $('#end1').val()
    }, 
    function(data) {
       $('#genreport').html(data).show();
    });
});