在IE11中的Jquery UI datepicker年下拉空白 [英] Jquery UI datepicker year dropdown blank in IE11

查看:181
本文介绍了在IE11中的Jquery UI datepicker年下拉空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。



我的日期拣货员遇到了这个问题。我似乎无法指出问题所在。

我想检索按月份过滤的报告。一个月检索很好,但是我遇到了一年的问题。

IE9和Chrome没关系,但是IE11没有用。但是当我打开Developer's Tool时它会变得很好。关于如何解决此问题的任何想法?

以下是我的代码。

HTML:

 <   div     class   =  yrresultto    style   =  position:absolute; margin: 44px 0 10px 391px; >  
< 标签 > 要:< / label >
< 输入 type = hidden id = def3 value =' <%:dateto.ToShortDateString()%> ' / >
<%:Html.TextBoxFor(m = > m.ResultTo, new { @readonly = true })%>
< div 样式 = padding-left:20px; >
<%:Html.ValidationMessageFor(m = > m.ResultTo)%>
< / div >
< / div >





脚本:

$(#ResultTo)。val(dto);

$(#ResultTo)。datepicker({

changeMonth:true,

changeYear:true,

dateFormat:'mm / dd / yy',

showButtonPanel:false ,

minDate:新日期(2014-12-1),

maxDate:1

});

解决方案

(#ResultTo)。val(dto);


(#ResultTo)。datepicker ({

changeMonth:true,

changeYear:true,

dateFormat:'mm / dd / yy',

showButtonPanel:false,

minDate:new Date(2014-12-1),

maxDate:1

});

Hi.

I got this problem in my datepicker. I can't seem to point on what is the problem.
I want to retrieve a report filtered by month-year. Month retrieves fine but I got a problem with the year.
It's ok with IE9 and chrome but did not work with IE11. But it turns to be fine when I open the Developer's Tool. Any idea on how to fix this?
below is my code.
HTML :

<div class="yrresultto" style="position:absolute; margin:44px 0 10px 391px;">
<label>To : </label>
<input type="hidden" id="def3" value= '<%:dateto.ToShortDateString() %>' />
<%:Html.TextBoxFor(m => m.ResultTo, new { @readonly = true })%>
<div style="padding-left:20px;">
<%:Html.ValidationMessageFor(m => m.ResultTo)%>
</div>
</div>



SCRIPT:
$("#ResultTo").val(dto);
$("#ResultTo").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'mm/dd/yy',
showButtonPanel: false,
minDate: new Date("2014-12-1"),
maxDate: 1
});

解决方案

("#ResultTo").val(dto);


("#ResultTo").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'mm/dd/yy',
showButtonPanel: false,
minDate: new Date("2014-12-1"),
maxDate: 1
});


这篇关于在IE11中的Jquery UI datepicker年下拉空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆