How to make type=“number” to positive numbers only

后端 未结 17 2396
既然无缘
既然无缘 2020-11-30 17:12

currently I have the following code


it comes out to something like this

17条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 18:16

    It depends on how precise you want to be. It you want to accept only integers, than:

    If you want floats with, for example, two digits after decimal point:

提交回复
热议问题