I'm very new to javascript and i'm currently struggling with tryin to come up with code for a text field i have on a pdf form.
What im trying to do is make it so that only certain characters can be entered into that field. For example it must be in the A9999 format (capital letter, followed by 4 numbers). If anything other than that format is entered an error message should pop up and the field is reset to null.
As i said i am brand new to Javascript and it is tough as i am use to visual basic programing. Any help would be greatly appreciated.
Thanks
Rajay
event.value = event.value.toUpperCase();
A more elegant and complex solution could be done using the RegExp object and writing custom scripts for the keystroke, format and validation.
George Kaiser