Hi, How can i check whether user has typed number in name field and text in age field or telephone no. field.. pls help.. Thanks in advance.. Pranit..
posted 15 years ago
You could use the onBlur and onFocus() event handler to get notification of when the text has changed. Then test the "form control name to get the actual form control and test to see which one it was. Then get the value from the control and do tests like isNaN(value) to see if it is a number and such.
Here is an example...
[This message has been edited by Heath Lilley (edited October 17, 2001).]