Hi there superbarbs,
and a warm welcome to these forums. 
try it like this...
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
window.onload=function() {
df=document.forms;
inp=df[0].getElementsByTagName('input');
for(c=0;c<inp.length;c++) {
if(inp[c].type=='checkbox') {
inp[c].onclick=function() {
if(this.checked==true){
df[1][0].value+=this.name+' ';
}
else {
df[1][0].value=df[1][0].value.replace(this.name+' ','');
}
}
}
}
}
</script>
</head>
<body>
<form action="#">
<div>
<input type="checkbox" name="foo"/>
<input type="checkbox" name="blah"/>
<input type="checkbox" name="dodah"/>
</div>
</form>
<form action="#">
<div>
<textarea cols="20" rows="3"></textarea>
</div>
</form>
</body>
</html>
coothead
Bookmarks