比如这样写html验证就会出错 那么该如何写?
Try this
<p>Choose a browser from this list:</p> <input list="browsers" /> <datalist id="browsers"> <option value="Chrome"> <option value="Firefox"> <option value="Internet Explorer"> <option value="Opera"> <option value="Safari"> </datalist>
Try this