Ticket #3861 (closed bug: fixed)
Manually entered date do not update altField
| Reported by: | mdiaz | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.8 |
| Component: | ui.datepicker | Version: | 1.6rc5 |
| Keywords: | Cc: |
Description
If a date is typed in the field (instead of selected from the calendar widget) the altField value is not updated.
A workaround to this problem:
$("#datepickerFieldId").change(function(){
var widget = $.data(this, "datepicker"); $.datepicker._setDateFromField(widget); $.datepicker._updateAlternate(widget);
});
But this should be implemented in the widget itself.
The keyup event could be used instead of the change event so the updated value would still be submitted if the user clicks the submit button without removing focus from the datepicker field.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/nologo.gif)
