PHP gevorderde |
|
Graag zou ik willen als je de radio button select aanklikt alle forms van mannetjes zonder een pagina refresh (of met) op disable komen te staan.
Ik heb het al wel zo ver gekregen dat de velden value op 0 worden gezet maar nog niet dat ze ook disabled worden...
Script:
<table width="69%" border="0" cellspacing="2">
<tr>
<td width="4%">
<input name="Musketier" type="text" id="musketier" value="0" size="4" />
</td>
<td width="37%">Musketiers</td>
<td width="3%"><input name="Speervechter" type="text" id="speervechter" value="0" size="4" /></td>
<td width="28%">Speervechter</td>
<td width="28%" rowspan="3"><label><input name="type" type="radio" value="aanvallen" checked="checked" />
Aanvallen</label> <br />
<label><input name="type" type="radio" value="versterking" />
Versterking</label> <br />
<label> <input name="type" type="radio" value="verkennen"
onClick="
document.strijd.Musketier.value='0';
document.strijd.Speervechter.value='0';
document.strijd.Paard.value='0';
document.strijd.Kanon.value='0';
document.strijd.{Uniek}.value='0';
" />
Verkennen</label></td>
</tr>
<tr>
<td><input name="Paard" type="text" id="paard" value="0" size="4" /></td>
<td>Paard</td>
<td><input name="Kanon" type="text" id="kanon" value="0" size="4" /></td>
<td>Kanon</td>
</tr>
<tr>
<td><input name="{Uniek}" type="text" id="uniek" value="0" size="4" /></td>
<td>{naam_uniek}</td>
<td><input name="Verkenner" type="text" id="verkenner" value="0" size="4" /></td>
<td>Verkenner</td>
</tr>
<tr>
<td colspan="5"><label>
<input type="submit" name="Submit" value="Versturen" />
</label></td>
</tr>
</table>
<table width="69%" border="0" cellspacing="2"> <tr> <td width="4%"> <input name="Musketier" type="text" id="musketier" value="0" size="4" /> </td> <td width="37%">Musketiers</td> <td width="3%"><input name="Speervechter" type="text" id="speervechter" value="0" size="4" /></td> <td width="28%">Speervechter</td> <td width="28%" rowspan="3"><label><input name="type" type="radio" value="aanvallen" checked="checked" /> Aanvallen</label> <br /> <label><input name="type" type="radio" value="versterking" /> Versterking</label> <br /> <label> <input name="type" type="radio" value="verkennen" onClick=" document.strijd.Musketier.value='0'; document.strijd.Speervechter.value='0'; document.strijd.Paard.value='0'; document.strijd.Kanon.value='0'; document.strijd.{Uniek}.value='0'; " /> Verkennen</label></td> </tr> <tr> <td><input name="Paard" type="text" id="paard" value="0" size="4" /></td> <td>Paard</td> <td><input name="Kanon" type="text" id="kanon" value="0" size="4" /></td> <td>Kanon</td> </tr> <tr> <td><input name="{Uniek}" type="text" id="uniek" value="0" size="4" /></td> <td>{naam_uniek}</td> <td><input name="Verkenner" type="text" id="verkenner" value="0" size="4" /></td> <td>Verkenner</td> </tr> <tr> <td colspan="5"><label> <input type="submit" name="Submit" value="Versturen" /> </label></td> </tr> </table>
|