View Single Post
Old 15-06-2004, 17:23   #2 (permalink)
adras
Zły
 
adras's Avatar
 
Join Date: May 2004
Location: Toronto, Canada
Posts: 2,001
Send a message via MSN to adras
<script language="javascript" type="text/javascript">
function fillcheckbox(selection)
{
document.form1.mycheckbox.value = selection.value;
}
</script>

<select name="combo" onchange="fillcheckbox(this);">
.....
</select>
<input type="checkbox" name="mycheckbox" value="zero">

....


Remember that the value of the checkbox will only be passed to the form's action page when the checkbox is selected.
__________________
  Reply With Quote