I have a date picker empty, but I do not know how to check if is empty (not validated or not)
You can check the value of the input using .val(), like this:
if($("#fieldID").val() == "") {
  alert("no date selected");
}
Or for inline datepickers and such as well, use getDate which returns null if there's nothing selected:
if($("#fieldID").datepicker("getDate") === null) {
  alert("no date selected");
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With