title: How to close bootstrap datetimepicker when date is selected
body: <p>I am using bootstrap datetimepicker (<a href="http://eonasdan.github.io/bootstrap-datetimepicker/Installing/" rel="nofollow noreferrer">http://eonasdan.github.io/bootstrap-datetimepicker/Installing/</a>).</p>
  
  <p>When I select the date the picker does not hides and I have to click outside to close it.
  How to close datetimepicker when date is selected/clicked?</p>
  
  <pre><code>&lt;div class="col-sm-3"&gt;
    &lt;asp:TextBox ID="date2" class="form-control" runat="server"
      onfocus="this.style.backgroundColor='yellow'"
      onblur="this.style.backgroundColor='cyan'"/&gt;
    &lt;script type="text/javascript"&gt;
      $(function () {
        $('#date2').datetimepicker();
      });
    &lt;/script&gt; 
  &lt;/div&gt;
  </code></pre>