不显示datepicker中的月份和年份下拉列表中的数据 [英] Not showing data in month and year dropdown in datepicker
本文介绍了不显示datepicker中的月份和年份下拉列表中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
但问题是,在月和年的下拉列表中,只有空白可见,如果我悬停在打开的下拉菜单中,那么只有月和年分别是可见的。如果我把鼠标移开,只有空白的白色下拉菜单,我再次悬停在下拉列表中,月和年是可见的。我可以选择唯一的问题是它是不可见的。
我的代码为datepicker
< script type =text / javascript>
jQuery(function($)
{
$(#<%= txtDOB.ClientID%>)datepicker({
changeMonth:true,
changeYear:true,
dateFormat:'mm / dd / yy'
});
});
< / script>
我正在应用它的文本框:
< div class =col-sm-5>
< asp:TextBox ID =txtDOBrunat =serverplaceholder =mm / dd / yyyy>< / asp:TextBox>
< / div>
< div class =col-sm-4 no-padding>
< p class =error>
< asp:RegularExpressionValidator ID =RegularExpressionValidator_txtDOBValidationGroup =Employee
runat =serverErrorMessage =Invalid Date ..ControlToValidate =txtDOB
ValidationExpression =^ [0-9] {1,2})[./-] +([0-9] {1,2})[./-] +([0-9] {2} | [0-9] {4})$>< / asp:RegularExpressionValidator>
< / p>
< / div>
解决方案
.ui-datepicker .ui-datepicker-title select {
color: #000;
}
它正在工作!
I am using JQuery datepicker with month and year value.
but the problem is, in the dropdown of month and year, only white spaces are visible, if I hover in the opened dropdown then only month and year respectively are visible. If I take mouse away, there is only blank white dropdown, again I hover in dropdown list, month and year is visible. I can select then. The only problem is it is not visible.
My code for datepicker
<script type="text/javascript">
jQuery(function ($)
{
$("#<%= txtDOB.ClientID %>").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'mm/dd/yy'
});
});
</script>
textbox in which i am applying it:
<div class="col-sm-5">
<asp:TextBox ID="txtDOB" runat="server" placeholder="mm/dd/yyyy"></asp:TextBox>
</div>
<div class="col-sm-4 no-padding">
<p class="error">
<asp:RegularExpressionValidator ID="RegularExpressionValidator_txtDOB" ValidationGroup="Employee"
runat="server" ErrorMessage="Invalid Date.." ControlToValidate="txtDOB"
ValidationExpression="^([0-9]{1,2})[./-]+([0-9]{1,2})[./-]+([0-9]{2}|[0-9]{4})$"></asp:RegularExpressionValidator>
</p>
</div>
解决方案
.ui-datepicker .ui-datepicker-title select {
color: #000;
}
it is working!
这篇关于不显示datepicker中的月份和年份下拉列表中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文