joett
asked on
How to detect line break
Hi, I created a form with a textarea. But whatever I typed in like "this
is
a
test"
it always comes out one line "this is a test".
How can I detect the line break?
thank you!
is
a
test"
it always comes out one line "this is a test".
How can I detect the line break?
thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi, i think i made a mistake. when i used it for display, it works perfect! :)
thank you.
thank you.
joett, thanks for the points
ASKER
But how should I invoke it?
I tried
<pre><textarea name="Message" rows="5" cols="80" wrap="VIRTUAL"></textarea>
and
<textarea name="Message" rows="5" cols="80" wrap="VIRTUAL"><pre></pre>
neigher of them worked.
is there anyway that I can read the text in and insert something like <br> in my JSP page?
many thanks.
joe