In the snippet below, I have two methods to choose an item: input with datalist and traditional select with options.
The select element keeps the option values hidde
You can use data-value and jquery to make your value hidden.
data-value
jquery
e.g:
$(document).ready(function() { $('#submit').click(function() { var value = $('#selected').val(); alert($('#browsers [value="' + value + '"]').data('value')); }); });
jsfiddle
Thanks to @guest271314