12 My97DatePicker日期时间选择JS

先下载My97DatePicker然后引用My97DatePicker文件夹下的WdatePicker.js即可使用,效果不错.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<form  method="post" action='#'>
<table>
<tr>
	<td>
		<input type="text"  readonly onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
		<input type="text"  readonly onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
	</td>
</tr>
</table>
</body>
</html>

Related posts:

Leave a Reply

Your email address will not be published.