In my php-file, I want to use the jQuery Datepicker.
When my file loads, I create the Datepicker disabled.
Then, when a special field in my php-file (it is a
$("#from").datepicker('disable'); should work, but you can also try this:
$("#from").datepicker('disable');
$( "#from" ).datepicker( "option", "disabled", true );