Safari does not support datalist
. You could use jQuery UI Autocomplete Instead. The code will be something like :
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
where #tags
is the ID of your input element and availableTags
the list of elements you need.