日期选择器上/下个月日期可选 [英] Datepicker previous/next month dates selectable
本文介绍了日期选择器上/下个月日期可选的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的 datePicker 上显示上个月和下个月的日期.就像这样:
I want to show the dates of previous and next months on my datePicker. Just like this:
这些日期也应该是可选择的.jQuery 默认 datePicker 中是否有任何选项,或者我可以修改 DatePicker 使其看起来像这样?
These dates should also be selectable. Is there any option in jQuery default datePicker or can I modify DatePicker to look like this?
推荐答案
应该这样做:
<script>
$(function() {
$( "#datepicker" ).datepicker({
showOtherMonths: true,
selectOtherMonths: true
});
});
</script>
查看:http://jsfiddle.net/fLveY/2/
这篇关于日期选择器上/下个月日期可选的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文