HTML input for Positive Whole Numbers Only (Type=number)

前端 未结 9 2070
悲&欢浪女
悲&欢浪女 2020-12-09 02:29

I can\'t find the right regex pattern for this, even though there are a lot of questions in this kind.

I dont want the user to be able to type or input



        
9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-09 03:03

    You can use this regex pattern for whole numbers [0-9]* or \d* [0-9] is range you can type 0 to 9 and * means not expecting any number or may you type infinite numbers

提交回复
热议问题