mike55 Posted October 19, 2005 Posted October 19, 2005 Hi, Is there any javascript available whereby I can prevent the user from entering non-numeric values into a textfield as they are typing data into the field. Or is this requirement undoable. Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
kahlua001 Posted October 19, 2005 Posted October 19, 2005 JS has isNaN() function, Is Not a Number, you can use this on a blur of the textbox or keydown. if (isNaN('test')) { alert('This is not a number!'); } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.