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
  • 11,601
  • 44
  • 114
  • 180

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,018
  • 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
  • 222,134
  • 40
  • 319
  • 330
Neil
  • 3,211
  • 1
  • 16
  • 15