Thursday, 22 August 2013

jquery validator plugin time and date

jquery validator plugin time and date

i am using the jquery validator plugin, which has no way to validate the
date and time. By using the jquery input features, i know that the time
will be in the correct format.
<input type="time" id="time />
<input type="time" id="time2 />
<input type="date" id="date" />
However, can someone please teach me how to create a method that ensures
that "time2" is no later than 11:59 PM or 23:59 and another method that
requires "time2" to be greater than "time"
I have tried but I do not understand the syntax required for the addMethod
function

No comments:

Post a Comment