title: datetimepicker does not close on selecting date
body: <p>I am using bootstrap datetimepicker and want that the dropdown should close on selecting the date as well as on selecting date n time both. Currently, it does not close in both the cases.</p>
  
  <p>Here is the code I am using: </p>
  
  <pre><code> &lt;span id="datetimepickerStart" class="input-append date"&gt;
   @Html.TextBoxFor(model =&gt; Model.Start)
  
   $('#datetimepickerStart).datetimepicker({
          language: 'en',
          use24hours: true,
          format: 'MM/dd/yyyy hh:mm:ss',
          endDate: new Date(),
           autoclose: true,
          changeDate: function () {
              alert();
          }
  
      });
  </code></pre>
  
  <p>I am converting this span into datetimepicker. I tried using autoclose property, changeDate event but no success. Most of the solutions available are for datepicker and not for datetimepicker.</p>
  
  <p>UPDATE: I was able to handle the change event of datetimepicker but now, 'hide' method does not work correctly. Here is the fiddle: jsfiddle.net/QM8eC/59 </p>
  
  <p>Can anyone check now ?</p>