您的位置:首页 > Web前端 > JQuery

date picker with jquery

2015-01-05 15:58 375 查看
<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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: