The input
event should work for what you need. As I understand, you can't use a datalist directly, but it is connected to an input by the list
attribute. This event binding would go on that input:
document.getElementById('browsers-input').addEventListener('input', function (event) {
if (event.inputType == 'insertReplacementText')
console.log('autocomplete option selected');
});