码迷,mamicode.com
首页 > Web开发 > 详细

date picker with jquery

时间:2015-01-05 16:22:05      阅读:130      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!