Radio buttons
|
|
How do i get it to select radio buttons?
where there are other answers too but i want the script to check the radio box 15_b how would i do this? |
|
|
Hi Jonathan, I replied to you by e-mail but here's the solution for new readers. After this code in the script:
// INPUT type RADIO
/* Selects the last one */
if (textElements[i].type == 'radio') {textElements[i].checked=true;} }
You can add this: if (document.getElementById('3_a')) {
document.getElementById('3_a').checked = true;
}
Btw, please contact me by e-mail (found at my website) since I don't receive any notifications if you post here. Cheers, Lucky Shot |