I have the following script that copies on select box to the other. It work in chrome,Opera and Firefox but not Edge or IE.
<select id="domainsource"><option>yes</option><option>no</option></select>
<select id="domaintarget"><option>yes</option><option>no</option></select>
<script>
var input = document.querySelector('#domainsource');
var messages = document.querySelector('#domaintarget');
input.addEventListener('input', function()
{
messages.value = input.value;
});
</script>