jquery 的日期时间控件(年月日时分秒)

时间:2014-06-28 12:01:26   收藏:0   阅读:634
<!-- import package -->
<script type="text/javascript" src="JS/jquery.js"></script>
<script type="text/javascript" src="JS/jquery-ui-1.7.3/ui/jquery-ui-1.7.3.custom.js"></script>
<script type="text/javascript" src="JS/jquery-ui-1.7.3/ui/ui.datepicker.js"></script>
<script type="text/javascript" src="JS/jquery-ui-timepicker-addon.js"></script>
<link type="text/css" href="CSS/jquery-ui-1.7.3/redmond/jquery-ui-1.7.3.custom.css" rel="stylesheet" />

<script type="text/javascript">
    $(‘#dyStartDateTime‘).datetimepicker({
        showSecond: true,
        changeMonth: true,
        changeYear: true,
        timeFormat: ‘hh:mm:ss‘,
        dateFormat: ‘yy-mm-dd‘
    });
    $(‘#dyEndDateTime‘).datetimepicker({
        showSecond: true,
        changeMonth: true,
        changeYear: true,
        timeFormat: ‘hh:mm:ss‘,
        dateFormat: ‘yy-mm-dd‘
    });
</script>

 

jquery 的日期时间控件(年月日时分秒),布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!