开发者

JQuery, Datepicker...OnSelect wont work in IE

开发者 https://www.devze.com 2023-01-28 05:36 出处:网络
Ok...really bugging me.Was working on all platforms, but for some reason, is not now.Go figure, IE is causing problems with the following code:

Ok...really bugging me. Was working on all platforms, but for some reason, is not now. Go figure, IE is causing problems with the following code:

$(document).ready(function() {
    $("#ecalendar").datepicker({ 
      onSelect: function(dateText, inst) { 
   开发者_StackOverflow中文版     alert("Finally!"); 
      }, 
      beforeShowDay: setScheduledDays
    }); 
});

Works great in every browser except IE. I know this has been asked a billion times, but none of the other answers garnered any results.


Try targeting your select list like so:

$("#ecalendar select").datepicker({ 
0

精彩评论

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

关注公众号