Question: check if datepicker is null javascript?
Answer: If there is none selected, it means its value will be null. var to = $('#to');// hope you defined the options and datepicker if (to. datepicker('getDate') === null) { #do your stuff - I have an example code below as I needed this check in a callback return to.