我正在尝试在HTML 5中创建一个符合以下参数集的输入框:
以下是代码:
<input type="number" name="txtAmount" pattern="^[0-9]{3,}" title="Amount must contain a minimum for 3 numbers. It cannot contain Characters or Special Characters" class="form-control" placeholder="Enter Amount" required/>
请建议,提前致谢。
拉吉夫
答案 0 :(得分:0)
<input pattern="[^0][0-9]{3,}" required title="Amount must contain a minimum for 3 numbers. It cannot contain Characters or Special Characters">