0
我想分開日期,月份和年份,同時提交表單,我認爲使用多個altfield可能是一個解決方案,但是,這是行不通的。任何人都可以請光?非常感謝。jQuery datepicker,分隔日期/月/年,同時選擇
$(function() {
$("#datepicker").datepicker({
altField: "#y, #m, #d",
altFormat: "yyyy, mm, dd"
});
});
<form action="#">
<input type="text" id="datepicker"><br />
<input type="text" name="y" />
<input type="text" name="m" />
<input type="text" name="d" />
<input type="submit" value="Go" />
</form>
使用解決http://stackoverflow.com/questions/10876696/jquery-date-picker-but-day-month-and-year-in-separate -dropdowns 謝謝 – Jeremy
我想知道什麼需要更長時間:張貼問題或自己找出答案。希望你知道我的意思:) – Felix