Last active
November 20, 2016 14:15
-
-
Save rhostem/66dfb206e4c6b405e991 to your computer and use it in GitHub Desktop.
jquery-ui-datepicker 한글 텍스트 설정
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// datepicker 한글 옵션 + 동적으로 추가된 input에 연결 | |
$body.on('focusin', '.datepicker', function() { | |
$.elCache(this).datepicker({ | |
dateFormat: "yy-mm-dd", | |
showOtherMonths: true, | |
selectOtherMonths: true, | |
closeText: "닫기", | |
prevText: "이전달", | |
nextText: "다음달", | |
currentText: "오늘", | |
monthNames: [ "1월","2월","3월","4월","5월","6월", | |
"7월","8월","9월","10월","11월","12월" ], | |
monthNamesShort: [ "1월","2월","3월","4월","5월","6월", | |
"7월","8월","9월","10월","11월","12월" ], | |
dayNames: [ "일요일","월요일","화요일","수요일","목요일","금요일","토요일" ], | |
dayNamesShort: [ "일","월","화","수","목","금","토" ], | |
dayNamesMin: [ "일","월","화","수","목","금","토" ], | |
weekHeader: "주", | |
dateFormat: "yy. m. d.", | |
firstDay: 0, | |
isRTL: false, | |
showMonthAfterYear: true, | |
yearSuffix: "년" | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment