HTML データリストを使用して、テキスト入力のオートコンプリート オプションを作成しています。入力をダブルクリックするのではなく、ボタンをクリックしたときに JavaScript から提案を表示できるかどうかを知りたいです。
<datalist id='gradeSuggestions'>
<option value='A'>A</option>
<option value='B'>B</option>
<option value='C'>C</option>
</datalist>
<input name="grade[]" autocomplete="off" list='gradeSuggestions' type='text' />
<input type='button' id='showSuggestions' value='Show Suggestions' />
<script>
$('#showSuggestions').on('click', function(){
// show the suggestions below the text input
});
</script>