senskart
0
Newbie Poster
Recommended Answers
Jump to Postwith a key listener, for instance. you add a key listener that checks the input given, if it's not a number or a ., have it consume the event.
Jump to PostIn addition to the above, be sure to check input again before sending the actual input data. There are users who, when they can't type what they want, will copy-paste their garbage input (with the mouse obviously, how could they ever press two keys at once, that's just madness). Then …
All 5 Replies
senskart
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
Traevel
216
Light Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.