Your Ad Here

Posted By

nicolaspar on 02/01/07


Tagged


Versions (?)

Javascript - Solo Números


 / Published in: JavaScript
 

  1. function soloNum( evento ){var key = evento.which || evento.keyCode; return (key <= 13 || key == 8 || (key >= 48 && key <= 57));}
  2.  
  3.  
  4.  
  5. // Ej: <input type="text" name="numero" id="numero" onKeyPress="return soloNum(event);">

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: nicolaspar on February 12, 2008

You need to login to post a comment.