Good day! The problem is that I derived the datepicker, but on the first click he chooses two dates at once, the current one and the one that was selected. How to remove this problem, tell me, please.
jQuery('#date_range').datepicker({ minDate: '+0', changeMonth: true, changeYear: true, numberOfMonths: 3, range: 'multiple', // ΡΠ΅ΠΆΠΈΠΌ - Π²ΡΠ±ΠΎΡ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ
Π΄Π°Ρ dateFormat: "dd.mm.yy", range_multiple_max: '25', // ΠΌΠ°ΠΊΠΈΠΌΠ°Π»ΡΠ½ΠΎΠ΅ ΡΠΈΡΠ»ΠΎ Π²ΡΠ±ΠΈΡΠ°Π΅ΠΌΡΡ
Π΄Π°Ρ onSelect: function(dateText, inst, extensionRange) { // extensionRange - ΠΎΠ±ΡΠ΅ΠΊΡ ΡΠ°ΡΡΠΈΡΠ΅Π½ΠΈΡ jQuery('input[name=multipleDate]').val(extensionRange.datesText.join(',')); }