SyntaxFix
Write A Post
Hire A Developer
Questions
For those who are using 2012-2013 versions, you can do this:
$('#from').datepicker('remove');
Then to enable it back:
$('#from').datepicker('add');
Here's the documentation.