textbox allow only letters

前端 未结 4 1148
余生分开走
余生分开走 2021-01-25 01:42

I need some help with a textbox:

The textbox is only allowed to contain letters. how do I do this?

4条回答
  •  忘了有多久
    2021-01-25 02:46

    You can use regular expression validation for this and use following regular expression "^[a-zA-Z]+$"

    this is the easiest way to do this.

提交回复
热议问题