Honestly, I think it is overkill to present the user with a datepicker when all you need is a year. Just use a select or even a spinner. Same for month/year just with two controls. Users expect consistent behavior from controls. If one calendar switches months when you click the month button and another disappears and populates a month, it's confusing. Furthermore, what will you do with all the days? You would have to disable all of them to prevent the user clicking on them. Just my opinion.
Dave On Sep 2, 12:20 pm, "fichtre.diantre" <[email protected]> wrote: > Ok, > > I think I would add event handlers on the month and the year > label in the |beforeShow |event. Something like that : > > beforeShow: function(){ > $(".ui-datepicker-div .ui-datepicker-month").click(...); > $(".ui-datepicker-div .ui-datepicker-year").click(...); > }, > > with convinient stylesheet to show that labels are "clickables". > > what do you think about that "half-solution"? I will try it and > tell you back if there is something wrong about-it (duplicate > event after a second display or, at the opposite, the loose of > the events on changing month or year). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
