Click to See Complete Forum and Search --> : Checkboxes make bunch of form fields appear


saintgregor
09-03-2003, 08:34 AM
hithere!

i've got the following problem:
On a page (to order some stuff) there are two checkboxes for two different products.
If at least one of the two checkboxes is checked, a whole bunch of form fields should appear below the checkboxes. (Address information etc.). When both checkboxes are unchecked again, the fields should disappear again.

thanks for helping!

saint

Khalid Ali
09-03-2003, 11:16 AM
if(document.ormname.checkboxName.checked){
//make bunch of form fields.style.visibility="visible";
}else{
//make bunch of form fields.style.visibility="hidden";
}

the above should do it

you will have to write down reference to each field that you are setting the visibility to hidden or visible.