[Solved] The choice of the day is not through the select, but through the calendar
If I clearly understand you, then you need just add $(‘#dayofweek’).val(arDate[0]); after this line const arDate = e.date.toString().split(‘ ‘);. Here is an example: let restaurantReserve = { init: function() { let _self = this; $(‘#reservation-date’).datepicker({ startDate: ‘+0d’ }).on(‘changeDate’, function(e) { const arDate = e.date.toString().split(‘ ‘); $(‘#dayofweek’).val(arDate[0]); filterTimes(); let input = $(‘[name=”RestaurantReservationForm[date]”]’); input.val(arDate[3] + ‘-‘ + … Read more