Select a radio button by passing in the radio button id and index you want to select - Node.js HTML

Node.js examples for HTML:Radio Button

Description

Select a radio button by passing in the radio button id and index you want to select

Demo Code


function toggleRadio(elementId, index) {
    var element = document.getElementsByName(elementId)[index];
    element.checked = true;/* www. j  a va  2s  . com*/
}

Related Tutorials