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
Try this.
$('#id_relative option[datalisted=datalisted]').val()