반응형
'월 선택'시 사용
1. jquery include/ ui포함
3.
$(function(){
/* MonthPicker 옵션 */
options = {
pattern: 'yyyy-mm', // Default is 'mm/yyyy' and separator char is not mandatory
selectedYear: 2017,
startYear: 2008,
finalYear: 2020,
monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월']
};
/* MonthPicker Set */
$('#monthpicker').monthpicker(options);
/* 버튼 클릭시 MonthPicker Show */
$('#btn_monthpicker').bind('click', function () {
$('#monthpicker').monthpicker('show');
});
});
반응형
'프로그래밍 > jQuery' 카테고리의 다른 글
| jquery sprite 플러그인 animateSprite.js (1) | 2017.11.01 |
|---|---|
| jquery ajax http to https 정리 jsonp (0) | 2017.10.26 |
| jquery input 한글/영문/특수문자 입력제한 (0) | 2017.03.31 |
| jquery file custom plugin (0) | 2017.02.28 |
| jquery set header for ajax json (0) | 2016.12.23 |
monthpicker.zip