【发布时间】:2013-02-11 05:06:18
【问题描述】:
我发现了一些类似的指令,但没有任何帮助,它们都是针对特殊字符或数字的。
我只需要让用户输入 1 , 2 , 3, 4, 5, N, O, A, B, C 。所有其他字符都应受到限制。
我可以通过什么方式自己选择输入的受限/允许字符?
- 对javascript不是很熟悉。
【问题讨论】:
-
all of them are either for special chars or for digits.就不能直接修改代码,而不是一味的复制粘贴吗? -
limitkeypress 的新链接brianjaeger.com/process.php
标签: javascript jquery html