<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link type="text/css" href="css/jquery-ui-1.7.custom.css"
rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.custom.min.js"></script>
<style type="text/css">
body {
font: 62.5% "Trebuchet MS", sans-serif;
margin: 50px;
}
</style>
</head>
<body>
<div class="demo">
<p>Date: <input type="text" size="30" id="datepicker" class="" /></p>
<script type="text/javascript">
$(document).ready(function(){
$(function() {
//$("#datepicker").datepicker(); //기본
$("#datepicker").datepicker({showOn: 'button', buttonImage: 'images/calendar.gif', buttonImageOnly: true});//갤린더이미지추가
$('#datepicker').datepicker('option', {dateFormat: 'yy-mm-dd'});//날짜 포맷
});
});
</script></div>
</body>
</html>
JQuery 日历
最新推荐文章于 2024-04-13 00:31:38 发布