[jQuery] Input that allows only numbers.

2009-07-17 Thread Caio Landau
Well, that a simple question, I hope. I have an input (input type=text /) on my page, and I want it to only accept numbers, so if the user types anything that's not a number, it will be removed instantly. A simplified example just to illustrate: body input type=text name=numbers / !-- I want

[jQuery] Re: Input that allows only numbers.

2009-07-17 Thread Caio Landau
So let me get it, key's code numbered between (and including) 48 and 57 are numbers? Ok, I got it, thank you :) On Jul 17, 11:18 am, Matt Zagrabelny mzagr...@d.umn.edu wrote: On Thu, 2009-07-16 at 16:12 -0700, Caio Landau wrote: Well, that a simple question, I hope. I have an input (input