lulu50
asked on
Alert user if from date greater than to date
Hi
How can I alert the user if they enter From date greater than To date?
How can I alert the user if they enter From date greater than To date?
var StartCreateDate = $('#FromCreatedDate').val();
var EndCreateDate = $('#ToCreatedDate').val();
if ((StartCreateDate != null && EndCreateDate != null) && (StartCreateDate > EndCreateDate)) {
alert("From create date must be greater than to create date")
return false;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!!!
Thank you!!!
Thank you!!!
Thank you!!!
Thank you!!!
Thank you!!!
Thank you!!!
you welcome!
ASKER
Thank you so much !!!!!
Thank you
Thank you
Thank you