I am using datepicker from gijgo 1.9.14.
I would like to know how to disable and enable it from javascript
$("#startDate").datepicker(
{
calendarWeeks: true,
uiLibrary: 'bootstrap4',
locale: 'pt-br',
value : '<?=date('d/m/Y')?>',
format:'dd/mm/yyyy',
iconsLibrary: 'fontawesome',
}
);
When I try
$("#startDate").prop('disabled',true)
The calendar icon is still active, so the user can use it to input data. Cant find anything on the official documentation to explain how to enabe/disable the control.
Many thanks
2
Answers
found a way, not the prettiest one but it works...
Now with this function
We can enable or disable the datepicker by
I added a new feature request for that in https://github.com/atatanasov/gijgo/issues/719