jQuery UI: Date Picker
Date Picker
by HYEONGJINKIM
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/mint-choc/jquery-ui.css">
<div id="datepicker"></div>
JavaScript
function workDays(date){
var day = date.getDay(),
weekNum = 0 | date.getDate() / 7;
return [(day === 3 && weekNum%2===1)];
}
$("#datepicker").datepicker({
closeText: '닫기',
hideIfNoPrevNext: false,
prevText: '이전달',
nextText: '다음달',
currentText: '오늘',
monthNames: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'],
monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
dayNames: ['일', '월', '화', '수', '목', '금', '토'],
dayNamesShort: ['일', '월', '화', '수', '목', '금', '토'],
dayNamesMin: ['일', '월', '화', '수', '목', '금', '토'],
weekHeader: 'Wk',
dateFormat: 'yy-mm-dd',
firstDay: 0,
isRTL: false,
showMonthAfterYear: true,
yearSuffix: '',
beforeShowDay: workDays
});