JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<label><input type="radio" value="javascript" name="lang"> JavaScript</label>
<label><input type="radio" value="jquery" name="lang"> jQuery</label>
<label><input type="radio" value="ecmascript" name="lang"> ECMASCript</label>
</form>
<p><button id="show-result">Показать отмеченныq пункт</button></p>
<p id="result"></p>
<!-- пример сайта know-online.com -->
JavaScript
var result = document.getElementById("result");
document.getElementById("show-result").onclick = function() {
var radio = document.querySelector("input[type='radio']:checked");
result.textContent = radio.value;
}