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>
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With