jQuery datepicker popup's problem (opens again after the date was selected) in IE 9
I met the problem with datepicker in IE 9 (FF and Chrome work fine).
When the user selects some date, popup hides, but after that it opens again. How to fix this?
the code to bind input text with datepicker:
$("input[type='datetime']").each(function () {
var minDate = getDateYymmdd($(this).data("val-rangedate-min"));
var maxDate = getDateYymmdd($(this).data("val-rangedate-max"));
开发者_开发技巧var yearrange = $(this).attr("yearrange");
$(this).datepicker(({
dateFormat: "yy-mm-dd",
yearRange: yearrange,
showOn: "both",
minDate: minDate,
changeYear: true,
changeMonth: true,
maxDate: maxDate,
buttonImage: '@Url.Content("~/Content/images/calendar.gif")',
buttonImageOnly: true
}));
Apparently, there has been a bug (Ticket here). I downloaded the latest release (1.8.16) and it seems that the problem has been fixed.
精彩评论