I honestly hope you can help me with that as I have spent quite some time searching on the net for appropriate solutions and could not find any.
The issue I am having is that I have a jQuery datepicker which I would like to keep open after selecting a date and then close it when clicking the button "Done" underneath it. The closest thing I found is coming from a StackOverflow answer from 2012, but unfortunately it hides the buttons coming from the showButtonPanel: true
option.
So this is a snapshot of my latest "try" which again it doesn't work:
$(function() {
$(".datepicker").datepicker({
showButtonPanel: true,
onSelect: function(){
$(this).val();
}
});
});
The calendar gets triggered from:
<input class="datepicker" type="text" path="startDate" data-date-format="mm/dd/yyyy" />
FYI - Im using jQuery 1.7.2.min.js (unfortunately I cannot update for safety and security reasons), jQuery-ui 1.10.3 and of course, Bootstrap (version 3.0.3 although I am not sure if this will help). Thank you