[펌] bootstrap 에서 modal + datepicker 사용시 안보이죠?
컨텐츠 정보
- 20,455 조회
- 0 추천
- 목록
본문
출처 : http://jaweb.tistory.com/505
jqueury bootstrap 에서 modal + datepicker 사용시 안보이죠?
써보면 압니다. 안보임 ㅇㅇ
게다가 ajax 로 값 불러오고 datepicker 불러와도 안됩니다.
안보이는거 해결은 datepicker 가 속한 div 를 modal 안에 넣어주면 됩니다. (2번째줄)
ajax로 불러온 버튼 클릭시 datepicker 가 불러오지 않는건 호출, show 를 해주면 됩니다. (3~4번째줄)
1 2 3 4 5 | $('#modalPriceLoad').on('click','#pmaSetDate1,#pmaSetDate2,#pmaShowDate1,#pmaShowDate2',function(){ $('#ui-datepicker-div').appendTo($('#uploadModal')); $(this).datepicker(); $(this).datepicker("show");}); |
관련자료
-
링크
댓글 0
등록된 댓글이 없습니다.