home ~ projects ~ socials

Get the Value of Which Radio Button is Checked in JavaScript

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