如何更改我日历的背景颜色 [英] How to change background color of my calendar
本文介绍了如何更改我日历的背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好先生,
我正在使用此jquery创建日历。
代码为:
Hello sir,
I am using this jquery for creating a calendar.
The code is:
<script type="text/javascript">
$(document).ready(function() {
$('#<%=tbentrydate.ClientID%>').datepicker({
dateFormat: 'mm-dd-yy',
changeMonth: true,
changeYear: true
});
$('#tbentrydate').attr('readonly', true);
});
</script>
在文本框中我使用了html代码:
And in text box i have used the html code:
Entry Date
<asp:TextBox ID="tbentrydate" onfocus="blur()" runat="server"></asp:TextBox>
但现在的问题是如何改变我日历的背景颜色?以及如何更改最大日期??
But now the problem is how change the background color of my calendar?? and how to change max date??
推荐答案
(文件).ready(function(){
(document).ready(function() {
('#< span class =code-pagedirective><% = tbentrydate.ClientID %> ')。datepicker({
dateFormat:' mm-dd-yy',
changeMonth:true,
changeYear:true
});
('#<%=tbentrydate.ClientID%>').datepicker({ dateFormat: 'mm-dd-yy', changeMonth: true, changeYear: true });
('#tbentrydate') .attr('readonly',true);
});
< / script >
('#tbentrydate').attr('readonly', true); }); </script>
在文本框中我使用了html代码:
And in text box i have used the html code:
Entry Date
<asp:TextBox ID="tbentrydate" onfocus="blur()" runat="server"></asp:TextBox>
但现在的问题是如何改变我日历的背景颜色?以及如何更改最大日期??
But now the problem is how change the background color of my calendar?? and how to change max date??
这篇关于如何更改我日历的背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文