I have a Jquery script employing some regex to valid some input. This works fine except if I type very rapidly the script gets confused.
I have tried to apply setTimeout without success.
Is there a way of buffering the input so that I can deal with each key stroke in turn? or simply discard any keystroke that occurs between the keyup event and the completion of it's event handler?