Alex Rivera | Logout

JQuery Datetime picker - Need to pick month and year only

Asked 2010-11-02T15:57:59.083
10

I went through this post jQuery UI DatePicker to show month year only which is very helpful to me in order to hack the datetime picker UI to suit my situation.

But as I have several datetime picker on the same form, this happens. The css display:none is aim to 'hide' the days not to be shown. But if I have several datetime picker on the same form but only one I wish to make one of it monthpicker, how can I achieve that? With thw css, it makes all the days on the all datetime calender UI disappear since the css will change the attribute of .ui-datepicker-calendar. Any suggestions are welcome.

Edit
Report

1 Answer

1

I did something similar to this, but made a seperate 'version' of the datepicker script and called it monthpicker, having it's own CSS selectors and CSS file. This meant you could use either or both on the same page.

answered 2010-11-02T16:02:51.543

Your Answer