我有一個dropDownList,並基於在我的dropdownList中選擇的值,我需要更改DatePicker的每個日期的佈局。是否可能發起事件DatePicker beforeshowDay事件
beforeShowDay:函數(dateToShow)在dropDown List中發生變化時?我如何實現上述目標?
我有一個dropDownList,並基於在我的dropdownList中選擇的值,我需要更改DatePicker的每個日期的佈局。是否可能發起事件DatePicker beforeshowDay事件
beforeShowDay:函數(dateToShow)在dropDown List中發生變化時?我如何實現上述目標?
$("#your-drop-list").live('change', function(event){
var date = new Date(2008,9,3);//generate date object based upon the value in input field using split
$('#dateselector').datepicker("setDate", date);
});
一些控制我已經有foolwoing代碼:$(「#dateChoose」)日期選擇器({ \t \t showOtherMonths:真實, \t \t selectOtherMonths:真, \t \t DATEFORMAT: 「YY/MM/DD」, \t \t ONSELECT:功能(dateText,研究所)\t \t { // \t \t}, onChangeMonthYear:功能(年,月,研究所) { // }, beforeShowDay:功能(dateToShow) { // } \t \t}); – learning 2011-05-02 07:26:45
檢查這一項,可能是你想這樣的... DatePicker style Change.
我可以有一個如何覆蓋現有的datePicker的例子嗎? – learning 2011-05-02 07:49:35
你可以將datepicker {option,....,......}更改爲你想要的東西..對於所有需要查看jqueryUI文檔的選項。 – 2011-05-02 07:52:03
你是什麼意思與佈局?你能舉個例子嗎? – 2011-05-02 07:14:05
我改變了顯示器,使用CSS爲每一個日期,根據從數據庫 – learning 2011-05-02 07:23:41