2
我使用datebox的jQuery插件移動http://dev.jtsage.com/jQM-DateBox2/unit/datebox.htmlDatebox - 獲取事件並輸入一個數值手動
一切正常驗證的年,月,日。
這裏我的問題是我如何通過在特定字段((即)keydown/keypress ..)輸入數字值來驗證個人年,月,日期輸入字段)而不使用加號和減號按鈕。
在此先感謝...
我使用datebox的jQuery插件移動http://dev.jtsage.com/jQM-DateBox2/unit/datebox.htmlDatebox - 獲取事件並輸入一個數值手動
一切正常驗證的年,月,日。
這裏我的問題是我如何通過在特定字段((即)keydown/keypress ..)輸入數字值來驗證個人年,月,日期輸入字段)而不使用加號和減號按鈕。
在此先感謝...
此功能檢查,如果輸入的變化,並記錄新的日期爲的console.log:
$("div.ui-grid-b div input.ui-input-text").change(function() {
var parent = $(this).parent().parent();
console.log("date changed to: "
+parent.find("div.ui-block-a input.ui-input-text").val()+":"
+parent.find("div.ui-block-b input.ui-input-text").val()+":"
+parent.find("div.ui-block-c input.ui-input-text").val()
);
});