---
title: "Bootstrap date picker after selecting date not closing picker"  
description: "Bootstrap date picker after selecting date not closing picker"  
author: "Samuel Fernandes"  
published: 2017-12-11  
updated: 2018-05-23  
canonical: https://www.mindstick.com/forum/34390/bootstrap-date-picker-after-selecting-date-not-closing-picker  
category: "jquery"  
tags: ["jquery", "bootstrap"]  
reading_time: 2 minutes  

---

# Bootstrap date picker after selecting date not closing picker

After selecting date from [bootstrap date](https://www.mindstick.com/forum/34392/how-to-restrict-bootstrap-date-picker-from-future-date) picker the picker [popup](https://www.mindstick.com/blog/11734/how-to-create-advanced-popup-or-banners-with-news-images-discounts-in-magento2) is not hiding. What may be the issue?

##### Jquery code

```
<script type="text/javascript">
    var Jquery = jQuery.noConflict();
    Jquery(document).ready(function () {
        Jquery('.datepicker').datepicker({

            format: "mm/dd/yyyy",


        });

      });
</script>
```

##### html code

```
  <div class="input-group date datepicker" data-provide="datepicker">
                            <input type="text" class="form-control" id="dFrom" name="dFrom">
                            <div class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </div>
                        </div>
```

## Replies

### Reply by Anonymous User

hope this code work for you

```
$(document).ready(function() {

  $('#dateFrom').datepicker({
   format: "mm/dd/yyyy",
   orientation: "top",
   autoclose: true
});

});
```

### Reply by Jam Martin

Post is removed by the Admin.

### Reply by Jam Martin

Post is removed by the Admin.

### Reply by Manish Kumar

add autoclose true

```
<script type="text/javascript">
    var Jquery = jQuery.noConflict();
    Jquery(document).ready(function () {
        Jquery('.datepicker').datepicker({

            format: "mm/dd/yyyy",
           autoclose: true

        });

      });
</script>
```


---

Original Source: https://www.mindstick.com/forum/34390/bootstrap-date-picker-after-selecting-date-not-closing-picker

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
