// test var selectEl = document.querySelector('select') var buttonEl = document.querySelector('button') selectEl.addEventListener('change', function() { console.log(this.value) }) buttonEl.addEventListener('click', function() { selectEl.options[1].selected = true })