Posted By

ginoplusio on 11/25/08


Tagged

javascript js replace validation regular Expression alphanum


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sulfurito


OnKeyUp fix alphanumerical chars


 / Published in: JavaScript
 

URL: http://www.barattalo.it

strip non alphanumerical characters while typing

  1. <input type='text' onkeyup="this.value = this.value.replace(/[^a-z0-9]/gi,"");" />

Report this snippet  

You need to login to post a comment.