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
<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
相关文章推荐
- angular directive ngmodel with jquery ui datepicker
- Asp.Net Textbox with jQuery UI Datepicker value lost on a postback
- [转]Using the HTML5 and jQuery UI Datepicker Popup Calendar with ASP.NET MVC - Part 4
- jQuery UI Datepicker with hour and minute
- 如何让jquery datepicker 在同一页面使用多次
- jQuery UI DatePicker“length为空或不是对象”错误的解决方法
- 利用jQuery实现datepicker只显示年,月,不显示日 year,month only
- JQuery日期插件datepicker
- jQuery插件Datepicker日期选择器实现Javascript自定义日期时间选择功能
- jQuery DatePicker笔记
- JQuery UI DatePicker中z-index默认为1的解决办法
- Jquery ui Datepicker 使用心得
- jQuery插件Datepicker日期选择器实现
- date picker plugin - jQuery 用法
- jQuery.datePicker日历插件
- My97 DatePicker 的jQuery插件
- jQuery UI Datepicker length为空或不是对象错误的解决方法
- jQuery学习之:Datepicker日期选择插件
- 【转】jQuery UI Datepicker中文显示
- 转贴 jQuery Datepicker by Example