I am using the jquery datepicker. I have to change some display showing the calendar.
I don't have enough reputation to post an image so i开发者_开发技巧 have posted in jquery forum. Kindly look over it and guide me and how to implement this.
IF you simply want to show the current month plus any days in incomplete weeks - days from other months, you can do this as such:
$(function() {
$( "#datepicker" ).datepicker({
showOtherMonths: true,
selectOtherMonths: true
});
});
If you wish to show the next months incomplete week, PLUS one more week, you will need to do this differently.
The selectOtherMonths: true
portion above sets if the OTHER months dates are selectable (true) or not (false), the current months days are more bold visually but ALL are selectable if this is true.
EDIT: The question remains then, if you want the EXTRA week of dates listed from the NEXT month? IF that last is true, I think perhaps we are looking at the need for custom code or another plug-in to use.
Use following option to show other months
$( "#datepicker" ).datepicker({
showOtherMonths: true,
selectOtherMonths: true
});
To change the styling override the following css class
.ui-priority-secondary
精彩评论