tuxx
Erfahrenes Mitglied
...oder mit checkbox...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<script><!--
function feld_sperren(){
if (document.form.Versand.checked == false){
document.form.box.checked = false;
document.form.taube.checked = false;
document.form.box.disabled = true;
document.form.taube.disabled = true;
}
if (document.form.Versand.checked == true){
document.form.box.disabled = false;
document.form.taube.disabled = false;
}
}
//--></script>
</head>
<body onLoad="feld_sperren();">
<script><!--
document.writeln("<form name='form'><input type='checkbox' value='Versand' onClick='feld_sperren();' id='Versand' name='Versand'>Versand<input type='checkbox' id='box'>Paket<input type='checkbox' id='taube'>Brieftaube<\/form>");
//--></script>
</body>
</html>