<legend>Wybierz typ konkursu jaki chcesz przeprowadzić
</legend>
<input type="radio" name="odp" value="1" id="1" onclick="document.getElementById('luz').style.display = this.checked ? 'block' : 'none'; this.form.elements['luz'].disabled = !this.checked" /><label for="1">luźna odpowiedź
</label> <input type="radio" name="odp" value="2" id="2" onclick="document.getElementById('wariant').style.display = this.checked ? 'block' : 'none'; this.form.elements['wariant'].disabled = !this.checked" /><label for="2">warianty odpowiedzi
</label> <input type="radio" name="odp" value="3" id="3" onclick="document.getElementById('artysta').style.display = this.checked ? 'block' : 'none'; this.form.elements['artysta'].disabled = !this.checked" /><label for="3">artystyczny
</label>
<div id="luz" style="display: none"> lużna odp
<div id="wariant" style="display: none"> warianty odp
<div id="artysta" style="display: none"> artysta
to jeszcze mam małe pytanie jeśli teraz wybiorę opcje nr.1 to pojawia mi się tekst "lużna odp", poźniej naciskam opcje nr. 2 i pojawia mi się tekst "warianty odp" ale wcześniejszy "luźna odp" nie znika. :/
próbowałem coś takiego
IF ("document.forms.formularz1.odp[0].checked==true")
ale mi nie działa.
jakaś podpowiedź ?