I want to check if the user has selected a valid date. When i call getDateFilteredComments() method.
I need to capture that in the IF condition.
$("#StartDate").datepicker({
dateFormat: "d M y"
});
function getDateFilteredComments() {
if (Condition) {
alert("Valid");
} else {
alert("Not Valid");
}
}
<input type="date" required />