How can I make a browser display all datalist options when a default value is set?
问题 I have an HTML form with a datalist and where the value is set with PHP, like <input list="values" value="<?php echo $val; ?>"> <datalist id="values"> <option value="orange"> <option value="banana"> </datalist> I want the user to see the options in the datalist, as well as the current value from the PHP. However, the "autocomplete" action causes values from the list that don't match (or start with) the current value to be hidden from the list, say if $val='apple' . Is there any way to avoid