首页 > 代码库 > 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