Javascript code that DISPLAYS the radio button value in a text box that also checks for the drop down value and displays a certain array value depending on the radio value choosen for the drop down se
function Dropcity() {
var select = document.getElementById('dropcity');
var option = select.options[select.selectedIndex];
document.getElementById('displaycity').value = option.value;
document.getElementById('value').value = option.text;
/* function below is the if/else statement section*/
function Popnums()
var checked_year = document.querySelector('input[name="year"]:checked');
if(checked_year != null){
document.getElementById('pop_num').value==option.value;
} else {
document.forms[0].elements['year'].value;
}