$(document).ready(function () { var event = new Date(); var arrival = new Date(); var departure = new Date(); var departureFlight = new Date(); var returnFlight = new Date(); event = $('#inputEventStart').data('date'); arrival = $('#inputArrival').data('date'); departure = $('#inputDeparture').data('date'); departureFlight = $('#inputFlDeparture').data('date'); returnFlight = $('#inputFlReturn').data('date'); if (arrival < event) { alert("Arrival date must be after the event!"); sender._textbox.set_Value(''); } if (departure > event) { alert("Departure date must be before the event!"); sender._textbox.set_Value(''); } if (returnFlight < departureFlight) { alert("Return flight must be after flight departure"); sender._textbox.set_Value('') } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)