question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AutoClose not working

See original GitHub issue

Hi, i use the autoclose method but this not working in Chrome: js:

        $(document).ready(function () {                                  
            $('.datepicker').datepicker({
                format: "dd/mm/yyyy",
                autoclose: true
            });

        });        

html:

<input class="datepicker valid" data-val="true" data-val-date="El campo Vencimiento debe ser una fecha." id="FirstMaturiy" name="FirstMaturiy" readonly="readonly" type="text" value="">

Thanks for your help.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:41 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
ashwini162606commented, Jun 28, 2014

if you are using html 5 than you can use (data-date-autoclose=“true” ) for auto closing other-wise you can use autoclose: true in your datepicker directive.

On Fri, Jun 27, 2014 at 2:40 PM, thearyoun notifications@github.com wrote:

I use autoclose; true for datetimepicker in bootstrap 2.3.2 it doesn’t work. how to solve it.

— Reply to this email directly or view it on GitHub https://github.com/eternicode/bootstrap-datepicker/issues/500#issuecomment-47323025 .

3reactions
FlanTechcommented, Dec 24, 2014

Don’t use class="datepicker" on your input or it will ignore any options you pass. Just do something like

<input class="datepickerx" type="text" /> and then $(".datepickerx").datepicker({ autoclose: true });

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap datepicker not close automatically after picking a date
autoclose works fine when you use the updated version of datepicker present on github: https://github.com/eternicode/bootstrap-datepicker.
Read more >
Incident Autoclose is not working - ServiceNow Community
The Incident autoclose schedule is not working for some regions. we have used the default BR as mentioned below.
Read more >
Auto close not working - WordPress.org
Hi. Auto close does not work for me. I use the snippet from. https://docs.wppopupmaker.com/article/93-automatically-close-popup-after-10-seconds.
Read more >
Autoclose on Navbar Dropdown not working
I tried applying the attribute for [autoclose]="true" for one of the dropdown items and tested it as well using "false" to see if...
Read more >
autoClose - API Reference - Kendo UI MultiSelect
autoClose Boolean (default: true). Controls whether to close the widget suggestion list on item selection. Example. Edit Preview Open In Dojo.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found