$('#dd').datebox({ onShowPanel: function(){ if (!$(this).datebox('getValue')){ var c = $(this).datebox('calendar'); c.calendar({ year: 2023, month: 1 }) } }})