$("#fromtime").datepicker is not a function 表示你的 js 檔可能沒有正確載入喔,請確認檔案位置都正確。不然可先試試看直接用 jquery 網站上面的版本:
<script type="text/javascript" src="http://jqueryui.com/ui/ui.core.js"></script>
<script type="text/javascript" src="http://jqueryui.com/ui/ui.datepicker.js"></script>
PS. 若有其他 plugin 使用的問題,建議你另開新帖發言喔,這樣才不會和 Autocomplete 的問題混在一起喔。 |