Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- group_concat 구분자
- usb 삭제
- php 배열제거
- 비밀번호검증정규식
- 윈도우 mod_security2
- bootstrap
- thumbnail 클래스
- 숫자 3자리(천단위) 마다 콤마 찍기
- (using password: YES)" when trying to connect
- usb efi 시스템 파티션 삭제
- modsecurity 설치
- 비밀번호정규식
- httpd.conf 보안 설정
- html pdf 변환
- PHP 정규식 예제
- VS Code 서버설치
- php 이미지 url 검증 함수
- apple push notification service (apns) is changing
- wsl2 우분투에 docker 설치
- mod_security2 설치
- 자바스크립트비밀번호검증
- 유튜브 플레이 리스트 저장
- 윈도우 환경 아파치 mod_security2 설치
- 아파치 웹 서버의 정보 숨기기
- postfix 설치
- sha-2 root
- javascript
- 파라미터 & 오류
- bootstrap modal
- mariadb upgrade
Archives
- Today
- Total
투덜이 개발자
datepicker 본문
반응형
datepicker 옵션

<script>
$.datepicker.setDefaults({
dateFormat: 'yy-mm-dd',
// minDate: '-7', // 일주일 이전 날짜 선택 못하게
maxDate: '1', // 하루 이후 날짜 선택 못하게
prevText: '이전 달',
nextText: '다음 달',
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: ['일', '월', '화', '수', '목', '금', '토'],
showMonthAfterYear: true,
yearSuffix: '년',
showOn: 'both', // button,both : "button" ->button 클릭 시 날짜 위젯을 보여준다. "both" => button이나 text상자 클릭 시 날짜 위젯을 보여준다.
buttonImage: 'images/calendar_ico.png', // 우측 달력 icon 의 이미지 패스
buttonImageOnly: true, // true이면 입력 필드 옆에 이미지만 표시됩니다. false이면 버튼 안에 이미지가 표시됩니다. inputbox 뒤에 달력icon만 표시한다. ('...' 표시생략)
// 년 또는 월이 변경시 이벤트 발생
onChangeMonthYear: function (year, month, inst) {
// alert('년 또는 월이 변경시 이벤트 발생');
},
// 일자 선택되기전 이벤트 발생
beforeShow: function (input, inst) {
// alert('일자 선택되기전 이벤트 발생');
},
// 일자 선택된 후 이벤트 발생
onSelect: function (dateText, inst) {
// alert('일자 선택된 후 이벤트 발생');
}
});
$(function() {
$("#datepicker1").datepicker();
});
</script>
https://jqueryui.com/themeroller/
ThemeRoller | jQuery UI
First Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Second Phasellus mattis tincidunt nibh. Third Nam dui erat, auctor a, dignissim quis. A button element An icon-only button Standard Automatic Insurance Book Now! Lore
jqueryui.com
반응형
'Program Language > JavaScript & Jquery' 카테고리의 다른 글
| [jquery] datepicker 특정일만 선택 (0) | 2021.10.28 |
|---|---|
| [jQuery] radio button 제어, 사용법 (0) | 2021.09.16 |
| Swipe (0) | 2021.07.13 |
| [Javascript] 서명 마크(sign)를 만드는 방법(canvas태크) (2) | 2021.06.22 |
| [ajax] Error code 0, error undefined (0) | 2021.05.28 |