I have a javascript function that changes a dropdown menu’s options based on some radio buttons that have been selected. I originally had the radio buttons set to “Onclick” to run the function but as it is based on 2 different sets of radio buttons this does not work. I changed the OnClick to happen when the user selects the drop down however now you cannot select an actual option as it just resets the dropdown when a selection is made. Is there and alternative I can use?
Genotype <select name="dropdown" id="dropdown" onClick = "DROPDOWN(father);"></select>