0
引導的DateTimePicker不autoclosing上選擇date.When我選擇從的DateTimePicker它應該關閉的DateTimePicker日期,但它不打烊引導的DateTimePicker不autoclosing
引導的DateTimePicker不autoclosing上選擇date.When我選擇從的DateTimePicker它應該關閉的DateTimePicker日期,但它不打烊引導的DateTimePicker不autoclosing
$('input.datum').datepicker({
autoclose: true
});
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker3.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/js/bootstrap-datepicker.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/locales/bootstrap-datepicker.de.min.js"></script>
<form action="#" method="post">
<label>Date:</label>
<input class="datum" type="text" name="vondatum" required>
<input type="submit" value="save">
</form>
你需要爲此添加autoclose。
$("#datepicker").datepicker({
autoclose: true
});
您必須添加相關代碼才能顯示您的問題以及您嘗試的內容。請閱讀[堆棧溢出問題清單](http://meta.stackexchange.com/q/156810/204922)並瞭解[最小,完整和可驗證示例](http://stackoverflow.com/help/mcve ) – VincenzoC