首页 > Web开发 > 详细

date picker with jquery

时间:2015-01-05 16:19:34      阅读:313      评论:0      收藏:0      [点我收藏+]

<html>

<input id="from_time" name="from_time"type="text" value="<?php echo date("m/d/Y");?>" size="10" onchange="changeMyAds()" readonly="true"/>
<span>To</span>
<input id="to_time" name="to_time" type="text" value="<?php echo date("m/d/Y");?>" size="10" onchange="changeMyAds()" readonly="true"/>
<script type="text/javascript">
$(function() {
$(‘#from_time‘).datepicker();
$(‘#to_time‘).datepicker();
});
</script>

</html>

 

and you can change the name to whatever you like,and also you should load the js and css files first.do not froget it

date picker with jquery

原文:http://www.cnblogs.com/jyb2014/p/4203838.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!