Bootstrap date picker after selecting date not closing picker

Total Post:13

Points:91
 461  View(s)
Ratings:
Rate this:

After selecting date from bootstrap date picker the picker popup 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>
  1. Post:52

    Points:366
    Re: Bootstrap date picker after selecting date not closing picker

    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>

  1. Post:2

    Points:14
    Re: Bootstrap date picker after selecting date not closing picker

    Post is removed by the Admin.

  1. Post:2

    Points:14
    Re: Bootstrap date picker after selecting date not closing picker

    Post is removed by the Admin.

  1. Post:9

    Points:63
    Re: Bootstrap date picker after selecting date not closing picker

    hope this code work for you

    $(document).ready(function() {
    

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

    });

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!