How do I check/validate in jQuery whether end date [textbox] is greater than start date [textbox]?
var startDate = new Date($('#startDate').val()); var endDate = new Date($('#endDate').val()); if (startDate < endDate){ // Do something }
That should do it I think