Stonedonspam Posted October 22, 2005 Share Posted October 22, 2005 I want make a form that only accepts numbers, but I don't want a message to pop up saying not to press it once I type it or try to submit it. I just want the form to remain empty when I try to type in anything other than a number. Could someone please help me on this? Link to comment Share on other sites More sharing options...
actionsketch Posted October 23, 2005 Share Posted October 23, 2005 use javascript and the onKeyPress event to force numbers. Link to comment Share on other sites More sharing options...
Stonedonspam Posted October 24, 2005 Author Share Posted October 24, 2005 thank you, i'll try that Link to comment Share on other sites More sharing options...
Jack McKalling Posted November 6, 2005 Share Posted November 6, 2005 The onChange event will do just fine too Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now