2. JS

[jquery] jquery-ui 달력 datepicker 기능

자르르 2013. 12. 23. 11:14
//달력
    $.datepicker.setDefaults({
       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:"yymmdd",
       firstDay:0,
       isRTL:!1,
       showMonthAfterYear:1,
       yearSuffix:""
    });
   
    $("input.calendar").datepicker().attr("maxlength", 8);