OnKeyUp修复字母数字字符

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OnKeyUp修复字母数字字符相关的知识,希望对你有一定的参考价值。

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

以上是关于OnKeyUp修复字母数字字符的主要内容,如果未能解决你的问题,请参考以下文章