0
我已经构建了一个需要邮政编码的小应用程序。我们也可以接受城市和邮编。但无论我想要什么,总是有一个邮政编码或至少5位数输入。确保输入包含至少5位数
我该怎么做?
这是我现在所在:
<input type="text" id="address" class="form-control" pattern=".{5,}"
title="We Need Your City and Zipcode to proceed."
placeholder="ie. New York 25317" required>
你可以把任何5个字符和形式的作品,但我的应用程序依靠邮政编码的功能。