I'm using the onkeyup event on a form field in JavaScript, and I'm wanting to check if the key the key pressed is a numeric digit - ie. 0 - 9, so I can then do something with the input.
<input type="text" onkeyup="" />
Would I need to use Regex for this?
Thanks