var e = document.getElementById("field_6"); e.onchange = function() { var strUser = e.options[e.selectedIndex].value; document.getElementById('aggregator_name').innerHTML = strUser; }