var select = document.getElementById('x'); var mutation = new MutationObserver(function() { select.value = 'xyz'; }); mutation.observe(select, { childList: true });