bleak7
Programmer
- Apr 3, 2009
- 1
I have a 'confirm' form that hides a table when a certain field contains a null value.
I actually need 3 fields to be null in order for the table not to show rather than one.
here part of the working code.
How or what do i do to allow for 3 (or multiple) fields?
This is doing my hedad in
I know getElementById is most likely not the way to go as it only allows for one.
Thanks in advance for any help.
I actually need 3 fields to be null in order for the table not to show rather than one.
here part of the working code.
Code:
if (document.getElementById('FIELDNAME').value=='') {
document.getElementById('ID_OF_TABLE').style.display='none';
}
How or what do i do to allow for 3 (or multiple) fields?
This is doing my hedad in
I know getElementById is most likely not the way to go as it only allows for one.
Thanks in advance for any help.