Posted By

powerkan on 09/21/06


Tagged

ie html xhtml Firefox explorer


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

nicolaspar
powerkan
vali29


javascript auto uppercase


 / Published in: JavaScript
 

  1. Test <input type="text" onkeydown="f(this)" onkeyup="f(this)" onblur="f(this)" onclick="f(this)" />
  2.  
  3. <script type="text/javascript">
  4. function f(o){o.value=o.value.toUpperCase().replace(/([^0-9A-Z])/g,"");}
  5. </script>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: badrian on December 15, 2009

THIS

You need to login to post a comment.