Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in HTML CSS only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
HTML CSS
Input text field in Form
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
anurag275125
New Member
Join Date:
Aug 2009
Posts:
79
#1
Input text field in Form
Apr 6 '10, 05:55 PM
Hello,
can anyone please tell me how can I create a input text field in form that can only accept numbers.
thanks
Dormilich
Recognized Expert
Expert
Join Date:
Aug 2008
Posts:
8694
#2
Apr 7 '10, 06:12 AM
no. HTML elements don’t make constraints about the input. you have to use JavaScript to filter out any non-numeric input.
Comment
Post
Cancel
MusoFreak200
New Member
Join Date:
Oct 2009
Posts:
96
#3
Apr 9 '10, 02:59 AM
damn dormilich....
got ahead of me...
and he is right you can't use html to do that you need to use xhtml, dhtml, and javascript
Comment
Post
Cancel
MusoFreak200
New Member
Join Date:
Oct 2009
Posts:
96
#4
Apr 9 '10, 03:00 AM
btw a good site to use is
www.echoecho.com/school.htm
Comment
Post
Cancel
anurag275125
New Member
Join Date:
Aug 2009
Posts:
79
#5
Apr 9 '10, 03:45 AM
thank you all.
I got the solution. I use JavaScript to allow only numbers to be entered in text field.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment