1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
|
<html>
<head>
<script type="text/javascript">
function check(that)
{
if (that.aktivieren.value == "inaktiv")
that.haken.disabled = true;
else
that.haken.disabled = false;
}
</script>
</head>
<body>
<form>
<select name="aktivieren" onchange="check(this.form)">
<option value="aktiv">aktiv</option>
<option value="inaktiv">inaktiv</option>
</select>
<input type="checkbox" name="haken" value="blubb">
</form>
</body>
</html> |