jquery.datepair日期时分秒选择器

来源:https://www.sucaihuo.com/js/479.html 2015-09-05 16:36浏览(2408) 收藏

本文演示了datepair插件多种选择日期时间DEMO,支持自定义日期时间选择范围,精确到秒。
jquery.datepair日期时分秒选择器
分类:日期时间 > 日期控件 难易:初级
查看演示 下载资源 下载积分: 20 积分

datepair基本示例

<p id="basicExample"> <input type="text" class="date start" /> <input type="text" class="time start" /> to <input type="text" class="time end" /> <input type="text" class="date end" /> </p>

引入日期时间相关文件

<script type="text/javascript" src="bootstrap-datepicker.js"></script>
<script type="text/javascript" src="jquery.timepicker.js"></script>
<script type="text/javascript" src="jquery.datepair.js"></script>
$('#basicExample .time').timepicker({
    'showDuration': true,
    'timeFormat': 'g:ia'
});

$('#basicExample .date').datepicker({
    'format': 'm/d/yyyy',
    'autoclose': true
});

$('#basicExample').datepair();
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2