For the dateInput
funciton in R Shiny, how do we embed the JavaScript and make the datepicker autoclose?
I found in another JS post that the option is
$('#datepicker').datepicker({
autoclose: true,
});
How can I add this function to R Shiny? Thanks!