Targa said:
Hey - This works great!
However, I have several fields below the initial checkbox and button. Anyway
to leave those alone?
Thanks!
Just put
onclick="checker(this)"
on the checkbox(es) you want.
Or are you asking about the movement of those items when the button appears?
If so, then try:
<html>
<head>
<title>buttton.htm</title>
<script language="javascript" type="text/javascript">
<!--
function checker(that) {
if (that.checked) {
toggle.style.visibility = "visible";
} else {
toggle.style.visibility = "hidden";
}
}
// -->
</script>
</head>
<body>
<form>
<input type="checkbox" name="Box" onclick="checker(this)">
<span id="toggle" style="visibility:hidden">
<input type="button" value="Button">
</span>
<br><input type="checkbox" name="Box" onclick="checker(this)">
</form>
</body>
</html>