[jQuery] jQuery UI 날짜 선택기 (datepicker)
페이지 정보
본문
<!DOCTYPE html>
<meta charset=”utf-8” />
<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css” type=”text/css” media=”all” />
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js” type=”text/javascript”></script>
<script src=”http://code.jquery.com/ui/1.8.18/jquery-ui.min.js” type=”text/javascript”></script>
<script>
$(function() {
$( ”#datepicker1” ).datepicker({
dateFormat: ’yy-mm-dd’,
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: ’년’
});
});
</script>
<p>생년월일: <input type=”text” id=”datepicker1”></p>
*************************************************************
<!DOCTYPE html>
<meta charset=”utf-8” />
<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css” type=”text/css” media=”all” />
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js” type=”text/javascript”></script>
<script src=”http://code.jquery.com/ui/1.8.18/jquery-ui.min.js” type=”text/javascript”></script>
<script>
$(function() {
$( ”#datepicker1, #datepicker2” ).datepicker({
dateFormat: ’yy-mm-dd’
});
});
</script>
<p>조회기간: <input type=”text” id=”datepicker1”> ~ <input type=”text” id=”datepicker2”></p>
*****************
<!DOCTYPE html>
<meta charset=”utf-8” />
<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css” type=”text/css” media=”all” />
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js” type=”text/javascript”></script>
<script src=”http://code.jquery.com/ui/1.8.18/jquery-ui.min.js” type=”text/javascript”></script>
<script>
$(function() {
$( ”#datepicker1, #datepicker2” ).datepicker({
dateFormat: ’yy-mm-dd’,
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: ’년’
});
});
</script>
<p>조회기간: <input type=”text” id=”datepicker1”> ~ <input type=”text” id=”datepicker2”></p>
<meta charset=”utf-8” />
<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css” type=”text/css” media=”all” />
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js” type=”text/javascript”></script>
<script src=”http://code.jquery.com/ui/1.8.18/jquery-ui.min.js” type=”text/javascript”></script>
<script>
$(function() {
$( ”#datepicker1” ).datepicker({
dateFormat: ’yy-mm-dd’,
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: ’년’
});
});
</script>
<p>생년월일: <input type=”text” id=”datepicker1”></p>
*************************************************************
<!DOCTYPE html>
<meta charset=”utf-8” />
<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css” type=”text/css” media=”all” />
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js” type=”text/javascript”></script>
<script src=”http://code.jquery.com/ui/1.8.18/jquery-ui.min.js” type=”text/javascript”></script>
<script>
$(function() {
$( ”#datepicker1, #datepicker2” ).datepicker({
dateFormat: ’yy-mm-dd’
});
});
</script>
<p>조회기간: <input type=”text” id=”datepicker1”> ~ <input type=”text” id=”datepicker2”></p>
*****************
<!DOCTYPE html>
<meta charset=”utf-8” />
<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css” type=”text/css” media=”all” />
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js” type=”text/javascript”></script>
<script src=”http://code.jquery.com/ui/1.8.18/jquery-ui.min.js” type=”text/javascript”></script>
<script>
$(function() {
$( ”#datepicker1, #datepicker2” ).datepicker({
dateFormat: ’yy-mm-dd’,
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: ’년’
});
});
</script>
<p>조회기간: <input type=”text” id=”datepicker1”> ~ <input type=”text” id=”datepicker2”></p>
추천0
관련링크
댓글목록
등록된 댓글이 없습니다.