How to force input to only allow Alpha Letters?

后端 未结 9 1531
长发绾君心
长发绾君心 2020-12-01 06:52

using jQuery here, however unable to prevent numbers from being typed into the input field

http://codepen.io/leongaban/pen/owbjg

Input



        
9条回答
  •  情话喂你
    2020-12-01 07:32

    Short ONELINER:

    For all unicode letters try this regexp: /\p{L}/u (but ... this) - and here is working example :)

提交回复
热议问题