0

I need a jQuery date picker that asks the user to select month and year.

I want it to be simple and not confusing at all. I could use two drop-down menus, one for month, the other for year, but I want it to be dead simple, just the click of the menue.

I prefer it to be jQuery, anyone know of an elegant choice in this situation?

Brad
  • 12,054
  • 44
  • 118
  • 187

2 Answers2

1

see a previous solution

jQuery UI DatePicker to show month year only

Do not miss these two parts out (like me)

<style>
.ui-datepicker-calendar {
    display: none;
    }
</style>

and the following in the datepicker function:

changeMonth: true,
   changeYear: true,
Community
  • 1
  • 1
Bill Comer
  • 1,033
  • 1
  • 14
  • 24
0

Why not use a plugin that someone else has put the effort into designing. I just googled it and came up with quite a few.

user229044
  • 232,980
  • 40
  • 330
  • 338
Neil
  • 3,229
  • 1
  • 17
  • 15