datepicker('dialog') option not working when onSelect is defined
Problem: when a date is selected (via mouse) the page is redirected to
'#'.
Code is:
$(ele).datepicker(
"dialog",
'',
getEvents,
{dateFormat: 'yymmdd'},
[200, 200]);
'ele' is an <a> element I have on the page. my 'getEvents' method is
coded to return void(0), thus I would have expected the href= action
of the datepicker dialog to be suppressed, but it is not. Looks like
the onSelect function is never called because the page is redirected
to '#'.
If I call the same code but leave onSelect function blank, I am able
to click on the days show on the calendar with no problem. Can
someone help?