I am trying to build an app based on jQuery date picker. Here is my fiddle: http://jsfiddle.net/Lf6sD/2/ . There is a onChangeMonthYear
even mentioned in the options, which is supposed to do a simple alert when user changes month or year either through the drop downs or the navigation buttons on the top left and top right.
However, the alert doesn't appear when I am changing month or year either way.
Can anyone tell me what is wrong, and how do I capture the event?
You have onChangeMonthYearType
Change it to this:
onChangeMonthYear: function(year,month,instance) {
alert("h");
}
Use onChangeMonthYear
not onChangeMonthYearType
,
onChangeMonthYear: function(year,month,instance) {
alert("h");
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.