Link to home
Start Free TrialLog in
Avatar of joett
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!
ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of joett
joett

ASKER

Thank you.

But how should I invoke it?

I tried
<pre><textarea name="Message" rows="5" cols="80" wrap="VIRTUAL"></textarea></pre>

and

<textarea name="Message" rows="5" cols="80" wrap="VIRTUAL"><pre></pre></textarea>

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
Avatar of joett

ASKER

hi, i think i made a mistake. when i used it for display, it works perfect! :)
thank you.
joett, thanks for the points