Node.js examples for HTML:Radio Button
Select a radio button by passing in the radio button id and index you want to select
function toggleRadio(elementId, index) { var element = document.getElementsByName(elementId)[index]; element.checked = true;/* www. j a va 2s . com*/ }