JSFiddle - React, Tailwind, and code Playground

HTML

<label>
  Enter a Fibonacci number:
  <input type="number" list="fibonacci" min="0" id="myinput">
</label>
<datalist id="fibonacci">
  <option value="0">
  <option value="1">
  <option value="2">
  <option value="3">
  <option value="5">
  <option value="8">
  <option value="13">
  <option value="21">
</datalist>
<button type="button" id="show-suggestions">Show suggestions</button>

JavaScript

$('#show-suggestions').click(function() {
  // .showSuggestions() does not exist.
  // I'd like it to display the suggested values for the input field.
  $('#myinput').showSuggestions();
});