Like normal dropdowns <datalists>
aren't very flexible for styling. You can't style them with css. Each browser handles their own styling for the <datalist>
element.
From the Tuts+ website:
Since wider browser support is only recent, there are predictable
interpretations by the vendors. Firefox and Chrome use the OS theme
for styling of the list options, whilst Opera will inherit certain
styles (color, font-family) from the input field. Other than that,
forget styling the datalist element with CSS.
Example with jquery:
HTML:
<input type='text' id='input'>
Javascript:
$(document).ready(function() {
var arrayOfOptions = [
"Option 1",
"Option 2",
"etc"
];
$("#input").autocomplete({source: arrayOfOptions});
});