var option = document.querySelector('.optionValue'); option.onchange=function(){console.log(this.value);};