This datepicker it is already created with other default options, but I need to update it with the following new options and it does not seem to work:
// new options
var new_options = {
format: 'dd/mm/yyyy',
autoclose: true,
language: 'es'
}
// update values
$("#fecha_periodo").datepicker("update", new_options );
I would also like to update other options like daysOfWeekDisabled, viewMode and so on.