Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change text based on dropdown selection javascript

var e = document.getElementById("field_6");
e.onchange = function() {
    var strUser = e.options[e.selectedIndex].value;
    document.getElementById('aggregator_name').innerHTML = strUser;
}
 
PREVIOUS NEXT
Tagged: #change #text #based #dropdown #selection #javascript
ADD COMMENT
Topic
Name
3+5 =