Very simple and straight forward. I pre-populated a HTML datalist with values, on the form when I want select a value and insert it into SQLite database. This is my example
You simply give your input an ID and then use the input's val() like so:
HTML:
JS:
$('#typeInput').val();