Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datepicker "Done" button not showing up in Display Button Bar Panel

I currently have my instance of Datepicker displaying the Button Bar panel that includes the "Today" button, but not the "Done" button. The code I've used to display the button bar is:

    <script>
    $(function() {
            $( "#datepicker" ).datepicker({
                    showButtonPanel: true
            });           

    });
    </script>

This is how it displays

I thought by default the "Done" button would show when the showButtonPanel is set to "true." Is there something more that I should add?

Thanks in advance.

like image 872
Kunal Avatar asked Jun 07 '12 16:06

Kunal


1 Answers

The buttonPanel does not show the close button if you haven't added your datepicker to an input element

Make sure you are attaching your datepicker to an input and not something like a div.

like image 196
giles Avatar answered Oct 04 '22 02:10

giles