Skip to content

Commit 9444fcf

Browse files
author
Rômulo Göelzer Portolann Malkiewiez
committed
Datepicker: Make sure altField is treated as a CSS selector [SO-2932013]
1 parent 7d18e9d commit 9444fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ $.extend(Datepicker.prototype, {
10711071
altFormat = this._get(inst, "altFormat") || this._get(inst, "dateFormat");
10721072
date = this._getDate(inst);
10731073
dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));
1074-
$(altField).each(function() { $(this).val(dateStr); });
1074+
$(document).find(altField).val(dateStr);
10751075
}
10761076
},
10771077

0 commit comments

Comments
 (0)