Hi,
I have some radio buttons and a normal button and on the onClick of the button I have a window.open() and I would like the value of the selected radio button to be parsed to that function.
So far it sorta works however because all the ids of the radio buttons are the same it only gets the value of the first radio button and not the checked one.
The button's onClick is:
window.open('options.php?sid=' + document.getElementById('radiobuttons').value, '', 'width=500,height=400')
I have some radio buttons and a normal button and on the onClick of the button I have a window.open() and I would like the value of the selected radio button to be parsed to that function.
So far it sorta works however because all the ids of the radio buttons are the same it only gets the value of the first radio button and not the checked one.
The button's onClick is:
window.open('options.php?sid=' + document.getElementById('radiobuttons').value, '', 'width=500,height=400')