2014-02-13 4 views
0

매일 이벤트 저장 시간을 대화 상자 div로 캡처하고 각 이벤트마다 시작 시간과 종료 시간을 얻는 모든 이벤트를 저장해야합니다. 일하지만 지금은 문제가 있습니다시간 선택기가 텍스트 상자에 올바르게 추가 된 jquery에 배치되지 않았습니다.

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. 

http://jsbin.com/lixig/3/edit

답변

2

이 시도이 링크 내 CODE,

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 
    }); 
} 

Working Demo

+0

아니요. 작동하지 않습니다. . . 그 이벤트 0에 대한 작업 유일한 친구 – Dinesh

+0

나는 이것이'플러그인 버그 '라고 생각한다. 나는'CDN'을 시도했고 같은 결과를 얻었다. http://jsbin.com/cijah/2/edit를 보자. –

+0

시간 선택 도구가 아니다. – Dinesh

관련 문제