View Full Version : Date picker

20 Jun 2011, 3:37 PM

i have a question

how create DatePicker and add listener

'select': function(date_picker, date)
alert(date.getFullYear() + '-' + (parseInt(date.getMonth()) + 1) + '-' + date.getDay());
and its great
but i need have got listener or call function when user select by click only month or only year
so first when user click top panels datapicker show month and year and user can choose mont an year
but in my case when user click top panel none year and month select and when he clikc month or/and year and next click ok datapicker call listener and i get this field value and do what i nee to do
how i can do this ?? any idea ??