Eller den anden vej ind:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>Tomt dokument</title>
<meta name="keywords" content="søgeord adskilt af komma">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.skjult{display:none;}
</style>
<script language="javascript" type="text/javascript">
function visSvar(sel){
num = +sel.value;
for(i=1;21>i;i++){
document.getElementById("r"+i).style.display = (num>=i)?'block':'none';
}
}
</script>
</head>
<body>
<form name="minForm" action="" method="post">
<table>
<tr>
<td colspan="2"><h1>Nyt spørgeskema</h1></td>
</tr>
<tr>
<td>Overskrift:</td>
<td><input type="text" name="overskrift" size="30"></td>
</tr>
<tr>
<td>Vælg antal svar:</td>
<td>
<select onchange="visSvar(this);">
<option value="0">Vælg antal svar</option>
<option value="1">1 svar</option>
<option value="2">2 svar</option>
<option value="3">3 svar</option>
<option value="4">4 svar</option>
<option value="5">5 svar</option>
<option value="6">6 svar</option>
<option value="7">7 svar</option>
<option value="8">8 svar</option>
<option value="9">9 svar</option>
<option value="10">10 svar</option>
<option value="11">11 svar</option>
<option value="12">12 svar</option>
<option value="13">13 svar</option>
<option value="14">14 svar</option>
<option value="15">15 svar</option>
<option value="16">16 svar</option>
<option value="17">17 svar</option>
<option value="18">18 svar</option>
<option value="19">19 svar</option>
<option value="20">20 svar</option>
</select></td>
</tr>
<tr class="skjult" id="r1">
<td>Første svar:</td>
<td><input type="text" name="s1" size="30"></td>
</tr>
<tr class="skjult" id="r2">
<td>Andet svar:</td>
<td><input type="text" name="s2" size="30"></td>
</tr>
<tr class="skjult" id="r3">
<td>Tredje svar:</td>
<td><input type="text" name="s3" size="30"></td>
</tr>
<tr class="skjult" id="r4">
<td>Fjerde svar:</td>
<td><input type="text" name="s4" size="30"></td>
</tr>
<tr class="skjult" id="r5">
<td>Femte svar:</td>
<td><input type="text" name="s5" size="30"></td>
</tr>
<tr class="skjult" id="r6">
<td>Sjette svar:</td>
<td><input type="text" name="s6" size="30"></td>
</tr>
<tr class="skjult" id="r7">
<td>Syvende svar:</td>
<td><input type="text" name="s7" size="30"></td>
</tr>
<tr class="skjult" id="r8">
<td>Ottende svar:</td>
<td><input type="text" name="s8" size="30"></td>
</tr>
<tr class="skjult" id="r9">
<td>Niende svar:</td>
<td><input type="text" name="s9" size="30"></td>
</tr>
<tr class="skjult" id="r10">
<td>Tiende svar:</td>
<td><input type="text" name="s10" size="30"></td>
</tr>
<tr class="skjult" id="r11">
<td>Elvte svar:</td>
<td><input type="text" name="s11" size="30"></td>
</tr>
<tr class="skjult" id="r12">
<td>Tolvte svar:</td>
<td><input type="text" name="s12" size="30"></td>
</tr>
<tr class="skjult" id="r13">
<td>Trettende svar:</td>
<td><input type="text" name="s13" size="30"></td>
</tr>
<tr class="skjult" id="r14">
<td>Fjortende svar:</td>
<td><input type="text" name="s14" size="30"></td>
</tr>
<tr class="skjult" id="r15">
<td>Femtende svar:</td>
<td><input type="text" name="s15" size="30"></td>
</tr>
<tr class="skjult" id="r16">
<td>Sekstende svar:</td>
<td><input type="text" name="s16" size="30"></td>
</tr>
<tr class="skjult" id="r17">
<td>Syttende svar:</td>
<td><input type="text" name="s17" size="30"></td>
</tr>
<tr class="skjult" id="r18">
<td>Attende svar:</td>
<td><input type="text" name="s18" size="30"></td>
</tr>
<tr class="skjult" id="r19">
<td>Nittende svar:</td>
<td><input type="text" name="s19" size="30"></td>
</tr>
<tr class="skjult" id="r20">
<td>Tyvende svar:</td>
<td><input type="text" name="s20" size="30"></td>
</tr>
</table>
</form>
</body>
</html>