首页 > 代码库 > date picker with jquery
date picker with jquery
<html>
<input id="from_time" name="from_time"type="text" value="http://www.mamicode.com/<?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="http://www.mamicode.com/<?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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。