[jQuery] adding an onSelect event to calendar (version 2.7)
I am having trouble figuring out how to add an onSelect event handler
to a popup calendar instance.
I am using jquery 1.2.1 and ui.calendar.js 2.7. I don't have the
option of upgrading.
I have an inline calendar on my page defined like this:
<div class="rangePicker rangePickerWithLabel pastRange"
id="datePicker">
<a href="javascript://" class="rangeDisplay"><span>Pick a Date</
span></a>
</div>
I would like to add a handler for onSelect events to the PopUpCal
instance that gets created by ui.calendar.js when this div loads.
Alternatively, if it were possible to capture the rangeDisplay value
changing that would also work, since whenever the date changes the
rangeDisplay gets updated. However a's and span's don't seem to
generate a change event.
Sorry, I'm a javascript novice and a jquery newbie.
Thanks for any help.
Robin