Consider the following text box:
Using jQuery I want to restrict the
Define a global variable "oldVal" (not described below), which contains the last known good value. Bind to the keydown action for the input field:
This should get you started