问题
I have a date picker and it is displaying a date. But the problem is each month is showing some days of previous month and also some days of next month which I don't want to be displayed. I want that each month should display days of that particular month.
For example let's say Month JUNE, here some days of month MAY and also some days of month JULY are displayed, but i want that only days of JUNE should be displayed. How can I do it? I am trying but no result is coming.
Here is the fiddle:
http://jsfiddle.net/cBwEK/
回答1:
You can make the other month values invisible by adding:
.datepicker .otherMonth {
visibility: hidden;
}
to your CSS. See the updated fiddle.
来源:https://stackoverflow.com/questions/10381454/only-display-days-of-specific-month-in-datepicker