Posted By

desmond54 on 02/17/10


Tagged

javascript


Versions (?)

Only numbers (or whatever) in a field


 / Published in: JavaScript
 

  1. // activate with onkeyup
  2. function checkField(thisField) {
  3. thisField.value = thisField.value.replace(/[^0-9]/g,"");
  4. }

Report this snippet  

You need to login to post a comment.