datetimepicker (jquery) inline is not displayed

1

I can not get the calendar to run correctly, when I click on a button if it looks good. but if you do not press anything, you see only the frame. It's the datetimepicker of jquery

$('.datepicker').datetimepicker({
                inline: true,
                sideBySide: true
         });
			
		$.datetimepicker.setLocale('es');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.4/jquery.datetimepicker.full.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.4/build/jquery.datetimepicker.min.css" rel="stylesheet"/>

<div class="datepicker"></div>
    
asked by Lorenzo Martín 05.09.2018 в 09:55
source

1 answer

5

It is best to update to the latest version of the plugin (2.5.20) since in version 2.1.1 there was a bug related to what you are saying

$('.datepicker').datetimepicker({
                inline: true,
                sideBySide: true
         });
			
		$.datetimepicker.setLocale('es');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
   
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.full.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.css" rel="stylesheet"/>

<div class="datepicker"></div>
    
answered by 05.09.2018 / 10:09
source