Search and Top Navigation
#3372 closed bug (fixed)
Opened September 13, 2008 11:01AM UTC
Closed November 03, 2008 12:58AM UTC
Last modified October 11, 2012 09:15PM UTC
Datepicker IE7 problem
Reported by: | anonymous | Owned by: | grabanski |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
if have a test page, where i have five input fields. I attach to each one a datepicker. If these five input fiels have no id attribute set, the value of the selected date is not always inserted in the correct input field. In firefox, this works correct, even if you have no id attribute...
<script type="text/javascript" language="JavaScript">
$(document).ready( function() {
//$(".datepicker").datepicker();
$(".datepicker").each( function() {
$(this).datepicker();
});
});
</script>
</head>
<body>
<input type="text" class="datepicker" name="first" /><br>
<input type="text" class="datepicker" name="second"/><br>
<input type="text" class="datepicker" name="third" /><br>
<input type="text" class="datepicker" name="fourth"/><br>
<input type="text" class="datepicker" name="fifth" /><br>
</body>
</html>
Generated IDs were set based on timestamp, possibly resulting in some duplicates. Fixed in 1.6 to use a sequential number and remove any duplicates.