我怎样才能阻止theShowDay函数调用一天的时间? jquery datepicker有两个月。
30.01.2013 -> month side jan
31.01.2013 -> month side jan
01.02.2013 -> month side jan (last invisible day / placehoder)
02.02.2013 -> month side jan (last invisible day / placehoder)
03.02.2013 -> month side jan (last invisible day / placehoder)
----------------------------
28.01.2013 -> month side feb (first invisible day / placehoder)
29.01.2013 -> month side feb (first invisible day / placehoder)
30.01.2013 -> month side feb (first invisible day / placehoder)
31.01.2013 -> month side feb (first invisible day / placehoder)
01.02.2013 -> month side feb
01.02.2013 -> month side feb
02.02.2013 -> month side feb
02.02.2013 -> month side feb
03.02.2013 -> month side feb
03.02.2013 -> month side feb
04.02.2013 -> month side feb
04.02.2013 -> month side feb
with beforeShowDay我算了几天,如果有几天叫了两次,结果就不对了...我怎么能阻止几天的双重调用?
问候!
答案 0 :(得分:0)
根据this jquery ui示例:
$(function() {
$( "#datepicker" ).datepicker({
showOtherMonths: true,
selectOtherMonths: true,
numberOfMonths: 2
});
});