如何在日历中在mouseiver中添加信息 [英] how to add informaition on a date in mouseiver in calender
本文介绍了如何在日历中在mouseiver中添加信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个日历,如果你在日期显示crusor它将显示该日期的信息
i want to create a calender if u take the crusor on a date it will display informtion regarding on that date
推荐答案
你可以使用beforeShowDay事件执行此操作,例如:
You can do this using beforeShowDay event like:
( document )。ready( function (){
(document).ready(function() {
(' #txtDate')。datepicker({
beforeShowDay: function (日期){
var tooltip = 今天的日期: +日期;
返回 [ true , someclass,tooltip];
}
});
} );
('#txtDate').datepicker({ beforeShowDay: function(date) { var tooltip = "Today's date: " + date; return [true, "someclass", tooltip]; } }); });
这篇关于如何在日历中在mouseiver中添加信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文