开发者

Allow only positive number with text input mask

开发者 https://www.devze.com 2022-12-17 01:14 出处:网络
I true to set a text input 开发者_如何学Pythonmask which only allow numbers from 0-999, or even better 1-999.

I true to set a text input 开发者_如何学Pythonmask which only allow numbers from 0-999, or even better 1-999.

So I tried the mask "##0", but unfortunately this also allows negative numbers. Is there a way to allow only positive numbers?

Best regards, Enyra


990 should work just fine as far as I understand your question. This will make space an allowed character for the two first digits, and the last one is always required to be a number.

0

精彩评论

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