I am working on a submission form that needs to have at least one radio button selected. In my code, I am able to retrieve the value of the selected radio button:
let myQuery = document.querySelector('input[name="#myName"]:checked').value;
If this value is returned (which is a string of text), can I proceed with the following:
document.getElementById("#ButtonID").removeAttribute("disabled");
Currently, my submit button is disabled, but by removing the attribute, users are able to submit their form after selecting a radio button.
How can I incorporate this into the querySelector? I already have a set of variables extracted from the .value for the selected radio button.
Thank you for your assistance :)