开发者

How to restrict textinput to accept all (including special characters) except numbers?

开发者 https://www.devze.com 2022-12-27 06:23 出处:网络
I have a text field (for names) which must allow all characters, except Latin numbers, i开发者_JS百科s this possible?

I have a text field (for names) which must allow all characters, except Latin numbers, i开发者_JS百科s this possible?

I can't think of a regex for this.


You can add a key up event handler to the text field and run a replace using the regex that zombiegx mentioned.


So I didn't really thought this thru

^[0-9]

... >_>

0

精彩评论

暂无评论...
验证码 换一张
取 消