var country = document.getElementById('country'); country.addEventListener('change', function(e) { //write your code inside change event });