bootstrap--input框选择日期

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css"/>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
</head>
<body>
<input type="text" class="datetimepicker">
</body>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript">
    $('.datetimepicker').datetimepicker({
        minView: "month",
        format: "yyyy-mm-dd",
        language: 'zh-CN',
        autoclose:true
    });
</script>
</html>

 

posted @ 2016-08-08 16:35  dongxiaolei  阅读(4684)  评论(0编辑  收藏  举报