我在表單中使用了我的網站上的JQuery UI日期和時間選擇器。用戶可以選擇日期,時間,他可以提供一些額外的信息。但由於某種原因,每當用戶點擊文本輸入以獲取附加信息時,日期和時間選擇器彈出窗口就會彈出...出了什麼問題?JQuery UI日期選擇器彈出始終打開
並且爲了記錄,所有內容都包含在php foreach
-loop中。不知道它是否與它有關。
日期和時間選擇器代碼:
<label class="labelx">Date: </td>
<input class="inputx" type="date" id="datepicker" name="datum" value=""></p>
<label class="labelx">Hour: </td>
<input class="inputx" type="text" id="timepicker" name="hour"></p>
<label class="labex">Title: </td>
<input class="inputx" type="text" id="title" name="titel"></p>
<label class="labex">Info: </td>
<input class="inputx" type="textfield" id="text" name="info"></p>
<input type="hidden" name="submitted" value="activitypost"/>
<input type="submit" name="submitted" class="verzend" value="Add"/>
JQuery的:
<script>
$j(function() {
$j("#datepicker").datepicker({ minDate: +0});
});
</script>
<script>
$j(function() {
$j("#timepicker").timepicker();
});
</script>
謝謝:)得到它的工作。 Chrome仍然存在錯誤(與無效值有關)... – Michiel