Get the Value of Which Radio Button is Checked in JavaScript

May 2025
document.querySelector('input[name="some-name"]:checked').value;
end of line