0
When you click, just open this pop-up. IMG1
By clicking the pop-up, it slides up and does not show the calendar. IMG2 When I change the boostrap to version 3.x. x, it works correctly.
But my entire project is using version 4.3.1.
Any suggestions?
$(function () {
$('#datetimepicker5').datetimepicker({
defaultDate: "04/09/2019",
locale: 'pt-br'
});
});
<head>
<!-- ... -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="assets/js/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css">
</head>
<div class='col-sm-6'>
<div class="form-group">
<div class='input-group date' id='datetimepicker5'>
<input type='text' class="form-control" />
<span class="input-group-addon" style="width: 20px;">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<!-- Page JS Code -->
<script src="assets/js/core/jquery.min.js"></script>
<script src="assets/js/core/jquery-ui.js"></script>
<script src="assets/js/core/js.cookie.min.js"></script>
<script src="assets/js/core/bootstrap.bundle.min.js"></script>
<script src="assets/js/core/simplebar.min.js"></script>
<script src="assets/js/core/jquery-scrollLock.min.js"></script>
<script src="assets/js/core/jquery.appear.min.js"></script>
<script src="assets/js/core/js.cookie.min.js"></script>
<script src="assets/js/core/popper.min.js"></script>
<script src="./assets/js/plugins/moment/moment-with-locales.min.js"></script>
<script src="assets/js/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script src="assets/js/plugins/bootstrap-datetimepicker/js/bootstrap.js"></script>
<script src="./js/atend_os.js"></script>
I have a suggestion! Use a plugin that was made for BS4, not a BS3 plugin inside BS4 ;)
– hugocsl
Oops, I’m searching the internet and I can’t find anything specific from datetimepicker to BS4
– Felipe Fernandes