datepicker event handler

datepicker event handler

Hi,
I have start_date and end_date DatePickers. When selecting a start_date
I'd like end_date to be initialized to the same as start_date. So I
added this event handler to start_date:
onClose: function(dateText, inst) {
    $("#end_date").datepicker('option', 'defaultDate', $("#start_date").datepicker('getDate'));
}
which works. But how could I use the passed 'inst' object instead of
$("#start_date) ?
Thanks,
--