Nochmal hi,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>switchAbility</title>
<script language="JavaScript" type="text/javascript">
<!--
function switchAbility (Zahl) {
document.forms["form"].elements["text"+Zahl].disabled = (document.forms["form"].elements["text"+Zahl].disabled) ? false : true;
document.forms["form"].elements["text"+Zahl].value = "";
}
function startAbility (Start, Ende) {
for(var i = Start; i<=Ende; i++){
document.forms["form"].elements["text"+i].disabled = (document.forms["form"].elements["text"+i].disabled) ? false : true;
document.forms["form"].elements["text"+i].value = "";
}
}
-->
</script>
</head>
<body onLoad="startAbility(1,3);">
<form name="form" action="">
<input type="checkbox" onclick="switchAbility(1);">
<input type="text" name="text1" value="">
<br>
<input type="checkbox" onclick="switchAbility(2);">
<input type="text" name="text2" value="">
<br>
<input type="checkbox" onclick="switchAbility(3);">
<input type="text" name="text3" value="">
<br>
</form>
</body>
</html>
verschickt, so funktionierts. was ist daran jetzt anders???