-1

如果输入在 1-100 之间,我如何检查 HTML5?

<input type="numeric" name="count" pattern="[1-9]" />
4

1 回答 1

10

Using min and max.

<input type="number" name="count" min="1" max="100">

Note the type is number.

于 2012-11-26T16:51:37.613 回答