admin管理员组文章数量:1312844
I'm trying to implement a event calendar using jquery-ui's datepicker. I've successfully installed the datepicker and it shows up and working. the problem appears when I try to register the beforeShowDay
handler. Like this:
$('#datePicker').datepicker({ beforeShowDay : function(){ }} );
I receive the following error in jquery-ui -file: ba is undefined
.
when I output something int the function, the first four times it outputs but then I receive the error.
$('#datePicker').datepicker({ beforeShowDay : function(){ console.log('test') }} );
Output:
// test
// test
// test
// test
// ba is undefined
if anyone has a clue what's the problem, please help.
I'm trying to implement a event calendar using jquery-ui's datepicker. I've successfully installed the datepicker and it shows up and working. the problem appears when I try to register the beforeShowDay
handler. Like this:
$('#datePicker').datepicker({ beforeShowDay : function(){ }} );
I receive the following error in jquery-ui -file: ba is undefined
.
when I output something int the function, the first four times it outputs but then I receive the error.
$('#datePicker').datepicker({ beforeShowDay : function(){ console.log('test') }} );
Output:
// test
// test
// test
// test
// ba is undefined
if anyone has a clue what's the problem, please help.
Share Improve this question asked Feb 20, 2012 at 7:56 HeadshotaHeadshota 21.4k13 gold badges62 silver badges82 bronze badges1 Answer
Reset to default 10You have to add this return [true,'']
Like this
$('#datePicker').datepicker({
beforeShowDay: function(date) {
console.log('test');
return [true,''];
}
});
Ref. http://osdir./ml/jquery-ui/2009-02/msg00349.html
本文标签: javascriptjquery ui datepicker error on beforeShowDayStack Overflow
版权声明:本文标题:javascript - jquery ui datepicker error on beforeShowDay - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741911451a2404468.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论