I have a problem with turning off my radio objects.
I am generating some parameters from my mysql db with php as follows:
<input type=\"radio\" name=\"answer\" id=\"answer\" value=\"".$inhAnswer['id']."\"/>
No problems:)
Then I use a countdown script, e.g. 10 seconds. This also works. Then after 10 seconds I want to turn off the radio buttons. I use this:
document.form1.answer[0].disabled = true;
It works. But what I need and I canβt understand is to disable ALL buttons. Now I can disable only the first. And I know that document.form1.answer [1] etc. Disconnect others, but I do not know how many radio beads will be used.
So, how can I let the script disable all response radio buttons at the same time?
Greetings
Toby
source share