[jQuery] Input that allows only numbers.
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 this input to accept
only numbers -->
</body>
Thanks