jQuery datepicker with change month and change year enabled opens and closes the option lists right away
Hi,
I have problem with my jQuery datepicker. I have changeMonth and changeYear enabled so that I can choose both from within a list of options. It works fine, but only the first time I click. Say I chose a month and want to choose a year. I click year, the list of years opens, but it closes right away. I need to click it one more time. Same goes for the month list after year is selected, or when I want to reselect a year.
I use jquery 1.10 something and jQuery UI datepicker 4.3.
My code:
jQuery('#datum_od').datepicker({
dateFormat : 'dd.mm.yy',
changeMonth: true,
changeYear: true
});
jQuery('#datum_do').datepicker({
dateFormat : 'dd.mm.yy',
changeMonth: true,
changeYear: true
});
Thank you for your answers.
Jan