Radio buttons not working in HTML
You can select all options
To fix this bug, all of the radio buttons must have the same value of the
<input type="radio" name="device" id="smartphoneValue" value="Smartphone" selected> <input type="radio" name="device" id="tabletValue" value="Tablet"> <input type="radio" name="device" id="laptopValue" value="Laptop">
<select> <option>1</option> <option>2</option> <option>3</option> </select>
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.