Text Input allow only Integer input in angularjs

前端 未结 7 1032
梦如初夏
梦如初夏 2021-01-04 19:45

I want to set the html input[number] to allow only integer input (not float).

Basically, the html input

7条回答
  •  花落未央
    2021-01-04 20:08

    Use pattern property:

    please see the demo : https://jsfiddle.net/JBalu/vfbgrd5n/

    may help.

提交回复
热议问题