Javascript automatisierte Formular/Radiobutton-Abfrage

Ahso....probiers so:
Code:
<form name="formular" onSubmit="return (pruef('formular','radiogroup') && pruef('formular','radiogroup2'))">
Frage 1 
   Antwort 1 <input type="radio" name="radiogroup" value="1">
   Antwort 2 <input type="radio" name="radiogroup" value="2">
   Antwort 3 <input type="radio" name="radiogroup" value="3">
   Antwort 4 <input type="radio" name="radiogroup" value="4">
   Antwort 5 <input type="radio" name="radiogroup" value="5">
   Antwort 6 <input type="radio" name="radiogroup" value="6">
   Antwort 7 <input type="radio" name="radiogroup" value="7">
   Antwort 8 <input type="radio" name="radiogroup" value="8">
<br><br>
Frage 2
   Antwort 1 <input type="radio" name="radiogroup2" value="1">
   Antwort 2 <input type="radio" name="radiogroup2" value="2">
   Antwort 3 <input type="radio" name="radiogroup2" value="3">
   Antwort 4 <input type="radio" name="radiogroup2" value="4">
<input type="submit" name="ab" value="ab dafür">
</form>
 

Neue Beiträge

Zurück