I try to create Angular 6 autocomplete with partly matching values. Is it possible to get HTML5 datalist opens always if got more then one option? At this moment it's opens only if exact match any option in the datalist.
Asked
Active
Viewed 293 times
0
-
Possible duplicate of [keep ui autocomplete open at all times](https://stackoverflow.com/questions/9149026/keep-ui-autocomplete-open-at-all-times) – Vikasdeep Singh Jun 09 '18 at 09:50
1 Answers
0
An example:
<!DOCTYPE html>
<html>
<body>
<form action="/action_page.php" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
<input type="submit">
</form>
<p><strong>Note:</strong> The datalist tag is not supported in Internet Explorer 9 and earlier versions, or in Safari.</p>
</body>
</html>

Pang
- 9,564
- 146
- 81
- 122

Moushumi Ahmed
- 35
- 2