prevent user from insert “DATE to” less than “DATE from”
up vote
-1
down vote
favorite
i have two calendars to insert "DATE from" & "DATE to" i want to prevent user from inserting "DATE to" less than or before "DATE from" i used a function before to prevent the user from selecting a DATE before today but i don't know how to use it in this new case <script type="text/javascript"> function checkDate(sender, args) { if (sender._selectedDate <= new Date()) { alert("You cannot select a day earlier than today!"); sender._selectedDate = new Date(new Date().getTime() + 24 * 60 * 60 * 1000); //sender._selectedDate.setDate(today.getDate() + 1); // set the date back to the current date sender._textbox.set_Value(sender._selectedDate.forma...