I want a validation for no past dates i.e something like
StartDate>=Today
Is this possible can anyone help? Thanks...
I want a validation for no past dates i.e something like
StartDate>=Today
Is this possible can anyone help? Thanks...
var startDateStr = $("#startdate").val();
var startDateArr = startDateStr.split("/");
var startDate = new Date(startDateArr[2], startDateArr[0], startDateArr[1]);
var todayDate = new Date();
if (startDate >= todayDate) {
$("<div class=\"message-warning\">Your Message!</div>")
.insertAfter("#enddate");
};