focus is off after selecting date using datepicker

focus is off after selecting date using datepicker


Hi
I created a date picker with the code below
------------------
<input id="myDateField1" type="text" size="10" name="myDate" value=""
title="(Format: MM/DD/YYYY)" />
<script type="text/javascript">
$('#myDateField1').datepicker(
    {
        showOtherMonths: true ,
        closeText: 'X'
    }
);
</script>
-----------
When the date is selected from the datepicker, its populating the date
field correctly, but hitting 'tab' button is not going to the next
field.
The tabbing works if I tab into date field, but just tab off it,
instead of selecting any date from datepicker.
Any suggestions please?