开发者

jQuery datepicker popup's problem (opens again after the date was selected) in IE 9

开发者 https://www.devze.com 2023-03-30 18:43 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号