bootstrap datetimepicker add clear button

<div class="ys-datetimepicker">
    <input class="form-control" size="16" type="text" value="2015-10-01" readonly=""/>
</div>
<script>
    $(".ys-datetimepicker input").datetimepicker({
        language: "zh-CN",
        format:"yyyy-mm-dd",
        todayBtn:true,
        clearBtn:true,// 自定义属性,true 显示 清空按钮 false 隐藏 默认:true
        startView:2,
        minView:2,
        weekStart: 1,
        todayHighlight: 1,
        autoclose: 1,
        forceParse: 0
    });
</script>

wKiom1hS2ILSE6ZnAAMscInb4-0018.png

 

These three documents need to update the z

Guess you like

Origin www.cnblogs.com/Yimi/p/11023661.html