Search and Top Navigation
#3516 closed bug (fixed)
Opened October 25, 2008 05:33AM UTC
Closed November 03, 2008 12:21AM UTC
Last modified October 11, 2012 09:15PM UTC
DatePicker: Safari can't handle multiple inputs without IDs
Reported by: | andersonic | Owned by: | grabanski |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
On Safari 3.1.2 for Mac, if more than one input is turned into a datepicker, and neither has pre-set IDs, setting a date in any of them will set the date in the first one.
<input type="text" name="date1" class="datePick" /> <input type="text" name="date2" class="datePick" /> $(".datePick").datepicker()
This can be worked around by giving the inputs ID attributes.
Generated IDs were based on timestamp, so both of these would have received the same ID. Fixed in 1.6 with a sequential number as part of the generated ID.