File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes make textfield to accept numbers only Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "make textfield to accept numbers only" Watch "make textfield to accept numbers only" New topic
Author

make textfield to accept numbers only

Jagdeep Sharma
Ranch Hand

Joined: May 24, 2010
Posts: 121

Guys,

Please look at http://dev.sencha.com/deploy/dev/examples/grid/property-grid.html
if you try to edit border width and type alphabet 'a'. It won't accept. alphabet 'a' is not even visible for a second. If you type a number, it goes well. Now i want to achieve the same thing using javascript (using event handlers). How do i go about that.
 
wood burning stoves
 
subject: make textfield to accept numbers only