JSFiddle - React, Tailwind, and code Playground
by Michael Arndt
HTML
<form name="myForm">
<label> <input type="radio" name="myRadio" value="1"> 152-162 cm
<input type="radio" name="myRadio1" value="8"> 50 kg
<input type="radio" name="myRadio2" value="15"> Maennlich </label> <br />
<label> <input type="radio" name="myRadio" value="2"> 163-170 cm
<input type="radio" name="myRadio1" value="9"> 51-60 kg
<input type="radio" name="myRadio2" value="16"> Weiblich </label> <br />
<label> <input type="radio" name="myRadio" value="3"> 171-175 cm
<input type="radio" name="myRadio1" value="10"> 61-69 kg </label> <br />
<label> <input type="radio" name="myRadio" value="4"> 176-180 cm
<input type="radio" name="myRadio1" value="11"> 70-79 kg </label> <br />
<label> <input type="radio" name="myRadio" value="5"> 181-185 cm cm
<input type="radio" name="myRadio1" value="12"> 80-89 kg </label> <br />
<label> <input type="radio" name="myRadio" value="6"> 186-193 cm cm
<input type="radio" name="myRadio1" value="13"> 90-99 kg </label> <br />
<label> <input type="radio" name="myRadio" value="7"> 184-200 cm cm
<input type="radio" name="myRadio1" value="14"> 100-110 kg </label> <br />
<input type="button" value="Your Size"
onClick="alert(radioWert(document.myForm.myRadio));">
</form>
JavaScript
function radioWert(rObj) {
for (var i=0; i<rObj.length; i++) if (rObj[i].checked) return rObj[i].value;
return false;
}