本文介绍了你能加粗jquery ui datepicker字段吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以在jquery ui datepicker中加粗某些日期单元格.我希望用户知道他们是特定日期的事件,因此他们单击它就会向他们显示所有列出的事件.
I am wondering is it possible to bold certain date cells in jquery ui datepicker. I would like a user to know that their are events on certain dates so that they click on it and it would show them all listed events.
谢谢
推荐答案
您可以使用 beforeShowDay 函数返回将附加到该日期的类名称.
You can use the beforeShowDay function to return a class name that will be attached to the day.
beforeShowDay: function(date) {
// Check logic
return [true, "boldedClass"];
}
这篇关于你能加粗jquery ui datepicker字段吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!