Question: how to get selected value from radio button in html?
Answer: Get the value of the value attribute of a radio button: getElementById("myRadio"). value;
Change the value of the value attribute of a radio button: getElementById("myRadio"). ... 
Using radio buttons together with a text input field to display the value of the selected radio button: getElementById("result").