Click to See Complete Forum and Search --> : TextArea with linebreaks


DoLordBoy
03-19-2003, 06:18 PM
I'm putting info in a <textarea> value using a javascript function I'm making, in which the variables are the values of the previous textareas.

The problem is, in the function I want it to write a line break within the <textarea>, but placing a line break in the middle of a javascript function code completely messes up the code!

Any other way to do this?

pyro
03-19-2003, 06:20 PM
\n is what you use to add a line break in a textarea (or alert, etc.)

I was going to anwser in the HTML forums, but then saw that you were planning on posting here... :D

DoLordBoy
03-19-2003, 06:21 PM
thanks:-D

DoLordBoy
03-19-2003, 07:49 PM
thanks:-D

pyro
03-19-2003, 07:55 PM
You bet!