Only display days of specific month in datepicker

独自空忆成欢 提交于 2019-12-25 03:12:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!