最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - jquery ui datepicker is not showing Month and Year in dropdown list - Stack Overflow

programmeradmin0浏览0评论

(/ - version 1.11.4)

It is still working fine and let user pick up the date but only problem is that the "Month" and "Year" are not showing up until you hover the mouse on it:

What can possibly cause problem here? I checked the browser's developer tool and there is not error or warning

(https://jqueryui./datepicker/ - version 1.11.4)

It is still working fine and let user pick up the date but only problem is that the "Month" and "Year" are not showing up until you hover the mouse on it:

What can possibly cause problem here? I checked the browser's developer tool and there is not error or warning

Share Improve this question asked Jan 13, 2016 at 22:29 Ronaldinho Learn CodingRonaldinho Learn Coding 13.8k25 gold badges85 silver badges111 bronze badges 3
  • 2 Your CSS may be overriding the styling of the element. Inspect one the months with Firebug by right clicking, view the CSS in the property and check if anything is assigning the colour white to the text. Is it possible to provide a live example? – Clarus Dignus Commented Jan 13, 2016 at 22:34
  • I too faced the same problem.. ill check with inspect element in fire bug.. CSS color is transparent.. i changed it to black.. Now the month and Year showing me finely.. Thank you @clarus – Sabareeshwari Kannan Commented Sep 13, 2016 at 11:42
  • @SabareeshwariKannan Thanks for confirming that the proposed solution resolves the problem. – Clarus Dignus Commented Sep 13, 2016 at 14:13
Add a ment  | 

1 Answer 1

Reset to default 10

try to give the following selector black color instead of white cause this means that the month & year has a white color

.ui-datepicker .ui-datepicker-title select {
    color: #000;
}
发布评论

评论列表(0)

  1. 暂无评论