Late Binding onSelect for DatePicker
Hi,
Is it possible to "late bind" to the onSelect event on the date picker
after the standard setup is called? If I use this code
$("#date').datepicker({showOn: 'button',
...
onSelect: function(dateText) { alert
(dateText) }
...
});
Then the event binds correctly and fires as expected. I only want to
bind to this event in certain cirumstances so I created another
function that I call independently.
function handleSelect(id) {
$("#" + id).datepicker( {
onSelect: function(dateText) { alert(dateText); }
}
)
}
When I do it this way though the onselect event doesn't fire. Can
someone tell me what I'm doing wrong? I'm using 1.5.3.
Thanks for your help,