Hi Timo!
Sorry, aber irgendwie stehe ich gerade auf der Leitung
Das merkt man.
Du musst in einer Schleife über alle Input-Elemente des Typs "radio" gehen.
function showCheckedZusatzdaten() {
// Alle Input-Elemente in ein Array speichern
var inputs = document.getElementsByTagName("input");
for(i=0;i<inputs.length;i++) // Schleife über alle Inputs
if(inputs[i].type=='radio') // Nur die Radio-Buttons bearbeiten...
document.getElementById('zusatzdaten_' + inputs[i].id).style.display = (inputs[i].checked) ? 'block' : 'none';
// ...und wenn sie nicht ausgewählt sind, ausblenden.
}
Schwer? =)
MfG H☼psel
--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)