我需要输入地址才能接受字母和字符!如何?
<input id="Adresse" name="adresse" type="text" placeholder="Adresse" class="form-control input-md" required pattern="/[^a-zA-Z]/ "title="Only string and numbers">
答案 0 :(得分:-1)
<input id="Adresse" name="adresse" type="text" placeholder="Adresse" class="form-control input-md" required pattern="^[A-Za-z0-9 _]*[A-Za-z0-9][A-Za-z0-9 _]*$" title="Only string and numbers">
此link也很有用。