Basic operations using datepicker plugin implements the selected date 8-5

datapicker Parameter Description: http://www.cnblogs.com/xmphoenix/archive/2011/07/14/2106042.html


<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>使用datepicker插件实现日期选择的基本操作</title>
<script type="text/javascript" src="lib/jquery-2.1.1.js"></script>
<script type="text/javascript" src="lib/jquery-ui.min.js"></script>
<style type="text/css">
	body{font-size:13px}
	.txt{border:#666 1px solid;padding:2px;width:100px;margin-right:3px;}
</style>
<script type="text/javascript">
	$(function(){
		$("#txtDate").datepicker({changeMonth:true,changeYear:true,showWeek:true,showButtonPanel:true,closeText:'Close'});
	})
</script>
</head>
<body>

	<div>
		输入日期:<input name="txtDate" id="txtDate" class="txt"/>
	</div>
	
</body>
</html>


Reproduced in: https: //my.oschina.net/u/2552902/blog/543919

Guess you like

Origin blog.csdn.net/weixin_33796177/article/details/92327004