$("#from").datepicker('disable');
should work, but you can also try this:
$( "#from" ).datepicker( "option", "disabled", true );
$("#from").datepicker('disable');
should work, but you can also try this:
$( "#from" ).datepicker( "option", "disabled", true );