0
我正在使用ui.datepicker.js 我想驗證日期字段以確保用戶選擇日期。ui.datepicker.js表單驗證
我已經試過
function allow_submit()
{
var f = document.all.frm;
if (f.date.value == "") {
jAlert("Please select a date");
return false;
} //if
return true;
}
,也有嘗試
if (f.date.value == "0000-00-00") {
沒有更迭
任何線索?
嗨已經測試過,但沒有更迭 這裏是我的輸入碼 」> – lena 2010-05-09 00:02:32
嘗試用「#dp」替換「.datepicker」,看看是否有幫助。 – BradBrening 2010-05-09 00:31:54
好的,謝謝這是完美的工作與「#dp」 – lena 2010-05-09 00:40:40