为什么我的日期选择器和时间选择器不显示?
我的日期选择器和时间选择器不会显示在“输入日期:”和“输入时间:”字段旁边: http : //heightsdental.com/RequestAppt.php 。 代码中有php include语句,当它们不存在时: http : //evamagnus.com/RequestAppt.php ,显示日期和时间选择器。
您的jQuery UI脚本包含失败。
快速浏览一下chrome的开发工具,可以看出:
Failed to load resource: the server responded with a status of 404 (Not Found) http://heightsdental.com/js/jquery.ui.core.js Failed to load resource: the server responded with a status of 404 (Not Found) http://heightsdental.com/js/jquery.ui.datepicker.js Uncaught TypeError: Object [object Object] has no method 'datepicker' RequestAppt.php:159 Uncaught TypeError: Property '$' of object [object Window] is not a function RequestAppt.php:167
含义:您的JavaScript包含指向不存在的文件。
查看你的js子目录显示:他们真的不在那里。
(这很糟糕,允许索引,禁用目录列表 )