jQuery Forum

We are using the JQuery Validate plugin from Jörn Zaefferer to validate if the user enters a valid timespan. There are two input fields and the plugin checks if the second entry is later than the first entry.
e.g.  first entry: 8pm, second entry: 10:30pm --> everything is all right
first entry: 8pm, second entry 7:30pm --> that's an error

              
Let's suppose the time frame the user wants to enter is 10:30pm to 10:45pm. That's a totally valid entry.

The user enters 10:30pm into the first input field.
Then he starts to enter the later time into the second input field by entering the first number - the 1. He intends to enter the rest of the time right after (the 0:30pm)
However, now the plugin starts to validate and throws an error message, because 10:30-1 is not a valid timeframe.

A solution to this problem would be to delay the validation for a second so that the user has time to finish the process of entering his numbers.

Is it possible to delay the validation process?


Thanks,
Sandra








Status

Need more info

  • No status
  • Working on it
  • Answered
  • Need more info
Sandra, can you post your jQuery code you use to initialize the validation plugin? Or, if you are using HTML markup to configure it, can you post that?
Post Actions
Statistics
  • 1
     Replies
  • 30
     Views
  • 1
     Followers
Tags for the post

Edit Link Delete Link

Edit Link Delete Link

LoadingImage