/ Published in: JavaScript
Expand |
Embed | Plain Text
function soloNum( evento ){var key = evento.which || evento.keyCode; return (key <= 13 || key == 8 || (key >= 48 && key <= 57));} // Ej: <input type="text" name="numero" id="numero" onKeyPress="return soloNum(event);">
Comments
Subscribe to comments
- Posted By: nicolaspar on February 12, 2008
You need to login to post a comment.
