JavaScript Jak wybrać przycisk opcji

function check() {
  document.getElementById("red").checked = true;
}
Gadgetsan