Can anyone please tell me why this doesn't work?
The sign changes when I hit the button, and I get no error messages, but the
textarea doesn't disappear/reappear.
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<script type=text/javascript>
function openNotepad(val u){
if (valu == "+"){
document.getEle mentById("NP1") .style.visibili ty="visible";
document.form.B 1.value="-"
}
else {
document.getEle mentById("NP1") .style.visibili ty="hidden";
document.form.B 1.value="+"
}
}
</script>
<form name="form">
<table>
<tr>
<td>
<input name=B1 type=button value=- onclick=openNot epad(this.value )>
</td>
</tr>
<div id="NP1">
<tr>
<td>
<textarea name="texta01" rows=3 cols=40></textarea>
</td>
</tr>
</div>
</table>
</form>
</body>
</html>
Thanks!
iver@tda.no
The sign changes when I hit the button, and I get no error messages, but the
textarea doesn't disappear/reappear.
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<script type=text/javascript>
function openNotepad(val u){
if (valu == "+"){
document.getEle mentById("NP1") .style.visibili ty="visible";
document.form.B 1.value="-"
}
else {
document.getEle mentById("NP1") .style.visibili ty="hidden";
document.form.B 1.value="+"
}
}
</script>
<form name="form">
<table>
<tr>
<td>
<input name=B1 type=button value=- onclick=openNot epad(this.value )>
</td>
</tr>
<div id="NP1">
<tr>
<td>
<textarea name="texta01" rows=3 cols=40></textarea>
</td>
</tr>
</div>
</table>
</form>
</body>
</html>
Thanks!
iver@tda.no
Comment