noHeight
line1
line2
line3
line4
[/code]`
The page "noHeight" at http://dot.kr/x-test/height/noHeight.php has
the code above.
formValue of the textArea has 4 lines.
1st line and 2nd line are shown when it is loading
But the last line and 3rd line are hidden when it is loading
because the textArea has no height.
Since “formValue” is dynamic, the number of lines can also be 5 lines,
6 lines or 100 lines.
So I don’t know the height exactly.
That’s why I made auto.php at http://dot.kr/x-test/height/auto.php
with the code below.
[code]
auto
textArea value line1
textArea value line2
textArea value line3
textArea value line4
[/code]
The page "auto" above can prolong the height of the textArea by the number of lines.
As you enter something into the textArea box, it prolong the height of the textArea.
But it has a problem, i.e, the last line and the 3rd line are hidden when it is loading.
I like to make it that all the dynamic lines are shown when it is loading from the first.
As you enter something into the textArea box, the page “div” at http://dot.kr/x-test/height/div.php can show the all dynamic lines when it is loading from the first.
and it can prolong the height of the textArea box.
However, the page “div” has another problem.
I cannot get the formValue of the box at the next page “action.php” because it is using “div” instead of “textArea”.
The code at http://dot.kr/x-test/height/auto1.php has megazoid’s code.
I am afraid it doesn’t show yet the last line and the 3rd line when it’s loading.