처음부터 차근차근
$(...).datepicker is not a function 본문
반응형
jquery datepicker을 쓰려고 했는데 저 오류가 뜨면서 datepicker가 사용되지 않았다.
오류 이유
js 우선 순위 때문이었다.
js 파일은 뒤에 선언될 수록 우선 순위를 갖는다.
본문 앞쪽에다 선언했더니 datepicker가 우선 순위에서 밀려나서 그랬던 것 같다.
해결 방법
해결 방법은 간단하다.
datepicker js파일이랑 css파일을 가장 뒤쪽에 선언해준다.
반응형
'Error&Warning' 카테고리의 다른 글
Unable to load the requested language file: language/dutch/upload_lang.php (0) | 2021.12.04 |
---|---|
Cannot set properties of undefined (setting '_DT_CellIndex') (0) | 2021.12.03 |
Codeigniter session database timestamp에 0이 들어가는 이유 (0) | 2021.12.02 |
Unable to access an error message corresponding to your field name (0) | 2021.11.19 |
Xcode 실행 중 Simulator 계속 검은 화면만 뜨는 error (0) | 2021.11.18 |
Comments