I have two rows of textboxes. The output from these (user entered) is displayed in a textarea. However if the second row is not filled in I don't want blanks to be displayed in the textarea. So I put in a test:
If (document.form.textbox.value="")
(then only display the first row)
else
(display both)
Obviously the textbox in question is on the second row. However even when there is nothing on the second row it still displays both rows results. Why does this happen?
Even if I try "alerting" the value it seems to have nothing in it. Is there a value automatically given to an empty textbox or is something else wrong?
Thanks,
IxxI
If (document.form.textbox.value="")
(then only display the first row)
else
(display both)
Obviously the textbox in question is on the second row. However even when there is nothing on the second row it still displays both rows results. Why does this happen?
Even if I try "alerting" the value it seems to have nothing in it. Is there a value automatically given to an empty textbox or is something else wrong?
Thanks,
IxxI