Javascript 时间选择器未正确放置在文本框上追加的jquery中
我需要每天存储所有事件,这些事件时间由dialog div捕获,我需要每天获取每个事件的开始时间和结束时间,但现在问题已经解决了Javascript 时间选择器未正确放置在文本框上追加的jquery中,javascript,jquery,css,jquery-ui,datetimepicker,Javascript,Jquery,Css,Jquery Ui,Datetimepicker,我需要每天存储所有事件,这些事件时间由dialog div捕获,我需要每天获取每个事件的开始时间和结束时间,但现在问题已经解决了 1. Time picker is not placed at the correct text box its automatically changed please some one help me. 2. I need to show time range i.e given gap for each and every events at h
1. Time picker is not placed at the correct text box its automatically changed please some one help me.
2. I need to show time range i.e given gap for each and every events at half hour please help me friends.
我的代码在此链接中
试试这个
if ((self.offset().top + self.outerHeight(true) + list.outerHeight()) > $(window).height() + $(window).scrollTop()) {
// position the dropdown on top
list.offset({
'left': self.offset().left+self.width() ,
'top': self.offset().top - list.height()+ self.innerHeight()
});
} else {
// put it under the input
list.offset({
'left':self.offset().left +self.width(),
'top': self.offset().top
});
}
我认为这是
插件的错误
我尝试了CDN
,得到了相同的结果
查看它的工作情况,但不是在你想要的位置上。第一个可以工作,正如你所希望的。我刚刚创建了第二个示例来向您展示,来自github url的时间选择器不适用于多个类
。