Like the title says, what\'s the best way in JavaScript to get all radio buttons on a page with a given name? Ultimately I will use this to determine which specific radio b
var options = document.getElementsByName('myRadioButtons'); for(i = 0; i < options.length; i++) { var opt = options[i]; if(opt.type=="radio") { if(opt.checked) { } } }