jQuery Datepicker: Prevent closing picker when clicking a date

rather than changing the source it’s best to use the existing events

onSelect: function() {
    $(this).data('datepicker').inline = true;                               
},
onClose: function() {
    $(this).data('datepicker').inline = false;
}

Leave a Comment