How do I validate for price input?

前端 未结 0 436
终归单人心
终归单人心 2021-01-20 18:59

I have an input and I want to validate this input. Input should only accept numbers and one dot. Such as 2.222 3745.299. I used regex for this and when I tried it in codepen

相关标签:
回答
  • 消灭零回复
提交回复
热议问题