Skip to content Skip to sidebar Skip to footer

Eonasdan Datetimepicker Autoclose Doesn't Work

If I removed the autoclose it works fine. How to autoclose datetimepicker. I've been searching on this but couldn't find useful information. $('#start_schedule').datetimepicker(

Solution 1:

It doesn't work actually according to documentation. If you will use showClose: true, it won't recognize, you will get an error. There is no other way rather than using this code in the docs. Hope this help.

<div class="container">
  <div class="row">
    <div class='col-sm-6'>
      <div class="form-group">
        <div class='input-group date' id='datetimepicker3'>
          <input type='text' class="form-control" />
          <span class="input-group-addon">
            <span class="glyphicon glyphicon-time"></span>
          </span>
        </div>
      </div>
    </div>
    <script type="text/javascript">
      $(function () {
        $('#datetimepicker3').datetimepicker({
          format: 'LT'
        });
      });
    </script>
  </div>
</div>

Post a Comment for "Eonasdan Datetimepicker Autoclose Doesn't Work"