date picker with jquery

<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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。