Calendar.js文件:
下載地址
http://u.xunzai.com/fileview_1198749.html
jsp頁面調用:
<input type="text" name="date" readonly="true"/>


<script>Calendar.setup(
{inputField: "doc_effective_time", singleClick: false, singleClick: true, showsTime: true, ifFormat: "%Y-%m-%d %H:%M", cache: true, weekNumbers:false, showOthers: true, step: 1});</script>
效果顯示:
只要一點擊文本框就會彈出下圖所顯示的日歷,這樣你就無需手動輸入日期了