2012-09-25 24 views
0

這是我的code
與日期選擇器不同,monthpicker在選擇月份時不打開網頁。
我錯過了什麼?onchange不適用於monthpicker

+0

你是什麼意思?它似乎爲我工作 –

+0

似乎在我的工作,它沒有工作在某些特定的瀏覽器? – Steven

+0

我正在使用FF和鉻。當我選擇一個月我沒有任何反應 – mamesaye

回答

0

終於找到了解決方案...與onClose。

window.location.href = this.value;
必須處於打開狀態選擇月份時關閉網頁以打開。
Here是完整的代碼。

1

monthpicker劫持onchange事件並且不會冒泡。你應該通過庫本身來做更改。

+0

@mamesaye你爲什麼不用onChangeMonthYear? – dqhendricks

+0

@dqhendricks:它沒有工作[code](http://jsfiddle.net/2YpsB/24/)。 – mamesaye

+0

@Christoffer Hallas:我是新手,可以詳細說明plz – mamesaye

相關問題