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="check">Отметить ECMASCript</button></p>
<!-- пример сайта know-online.com -->
JavaScript
var result = document.getElementById("result");
document.getElementById("check").onclick = function() {
document.querySelector("input[type='radio'][value='ecmascript']").checked = true;
}