EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on August 03, 2025, 08:39:23 PM



Title: datepicker datebox disable date
Post by: jaimi on August 03, 2025, 08:39:23 PM
How can I disable date fields in the datebox?

can you give me an example?


Title: Re: datepicker datebox disable date
Post by: jarry on August 11, 2025, 11:05:46 PM
This code shows how to disable some date fields(only Monday can be selected).
Code:
$('#dd').datebox().datebox('calendar').calendar({
validator: function (date) {
if (date.getDay() == 1) { return true; }
else { return false; }
}
})