How to force input to only allow Alpha Letters?

后端 未结 9 1501
长发绾君心
长发绾君心 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:26

    On newer browsers, you can use:

    
    

    You can use regular expressions to restrict the input fields.

提交回复
热议问题