2
我有一個實現日期選擇器它允許我在當前日期的10天之間進行選擇。如何在實際日期選擇器上選擇日期範圍
但我想選擇16/05/2016,19/05/2016日期和其他日期將被禁用日期選擇器(用戶不能選擇其他日期)。
我Materialise的日期選擇器代碼:
$('.datepicker').pickadate({
selectMonths: true, // Creates a dropdown to control month
selectYears: 10, // Creates a dropdown of 10 years to control year
format: 'dd/mm/yyyy',
min: -10,
max: true,
closeOnSelect: true,
closeOnClear: true,
});
您的解決方案工作。謝謝Oguzhan先生:) –