Radio buttons not working in HTML
@RixTheTyrunt I see what you mean, a better way to do this is to use the
select tag with
I think that to get the data, you have to use
select_item.selectedIndex and that returns an index of the options that shows which one is selected, so
select_item.options[select_item.selectedIndex].innerText is the option which is selected.
options can be selected and unselected and only one can be selected.
As far as I know, radio buttons are always multiselect and anyway
a dropdown is more appropriate for the situation.