<!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=gb2312" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" media="screen" href="jquery-ui-1.8.17.custom.css" />
<link type="text/css" rel="stylesheet" href="jquery.ui.datepicker.css"/>
<script type="text/javascript" src="jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="jquery.ui.core.js"></script>
<script type="text/javascript" src="jquery.ui.datepicker.js"></script>
<script type="text/javascript">
$(function() {
$("#datepicker").datepicker( {dateFormat: 'yy-mm-dd'} );
});
</script>
</head>
<body>
<div>
选择日期:<input name="date" id="datepicker" type="text" value="">
<input type="submit" id="submit_btn" value="查询">
</div>
</body>
</html>
<script type="text/javascript" src="jquery.ui.core.js"></script>
这句话很关键 如果没有效果出不来 搞了半个多钟头发现是它的事 给有需要的人提个醒