Link to home
Start Free TrialLog in
Avatar of jamesdean666
jamesdean666

asked on

How to compare two times in JQuery?

I have two asp:text box fields (TimeIn and TimeOut) that are being populated by times in this format:  "h:mm tt"

How can I compare these to prevent the entry of one time that occurs before another?

For example, I don't want a user to enter a TimeIn that is after the TimeOut.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jamesdean666
jamesdean666

ASKER

Thanks.