标签:datetimepicker bootstrap jquery
<!DOCTYPE HTML> <html> <head> <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" media="screen" href="http://tarruda.github.com/bootstrap-datetimepicker/assets/css/bootstrap-datetimepicker.min.css"> </head> <body> <div id="datetimepicker" class="input-append date"> <input type="text"></input> <span class="add-on"> <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i> </span> </div> <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/bootstrap-datetimepicker.min.js"></script> <script src="js/bootstrap-datepicker.zh-CN.js"></script> <script type="text/javascript"> $('#datetimepicker').datetimepicker({ format: 'yyyy-MM-dd', language: 'zh-CN', pickTime: false }).on('changeDate',function(){ $(this).datetimepicker('hide'); }); </script> </body>
下载地址: http://jquery.com/download/
下载地址: http://v3.bootcss.com/getting-started/#download
http://tarruda.github.io/bootstrap-datetimepicker/assets/js/bootstrap-datetimepicker.min.js
datetimepicker.html |
|
bootstrap日期插件datetimepicker的简单使用
标签:datetimepicker bootstrap jquery
原文地址:http://blog.csdn.net/u022812849/article/details/43164699