0

I am using validate.js to check the dates. I want end date to be equal to or greater than start date. how do I check this using jquery? Can I have two rules to the above jquery?

$("#edate").rules("add", {
    greaterThan: "#sdate",
    messages: {
        greaterThan: "end date must be greater than start date"
    }
});
Daniel Beck
  • 20,653
  • 5
  • 38
  • 53
dmk
  • 13
  • 1
  • 6
  • That is neither [tag:php] nor [tag:mysql]. How to do a greater-or-equal depends on what library that is. – deceze Mar 24 '18 at 11:25
  • I am using validate.js to check the dates. I want end date to be equal to or grater than start date. how do i check this using jquery? Can i have to rules to the above jquery? – dmk Mar 24 '18 at 12:09

0 Answers0