does anybody know how to turn a textfield to allow user inputs of numbers only using javascript? I know this can be googled but solutions are all the same ex: (http://www.htmlcodetutorial.com/forms/index_famsupp_158.html). What I want is to filter any inputs not only coming from the keyboard but also but also from the mouse like doing copy & paste non-numeric values on the field. Any help will be appreciated.
Share
Use
onChange:Note: In FF3 at least it only runs after the value has been “confirmed”, box lost focus or other and not instantaneously.