Код: Выделить всё
const options = document.querySelector('#select');
options.addEventListener('change', function() { // won't be triggered when chosen the item chosen is the same
console.log(this.value);
});< /code>
1
2
3
Подробнее здесь: https://stackoverflow.com/questions/706 ... reselected