vinomarky vinomarky - 1 year ago 79
Javascript Question

How to set radio button status with JavaScript

What method would be best to use to selectively set a single or multiple radio button(s) to a desired setting with JavaScript?

Answer Source

Very simple

radiobtn = document.getElementById("theid");
radiobtn.checked = true;