How do I check/validate in jQuery whether end date [textbox] is greater than start date [textbox]?
If the format is guaranteed to be correct YYYY/MM/DD and exactly the same between the two fields then you can use:
if (startdate > enddate) { alert('error' }
As a string comparison