Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Escape characters in a textarea 1

Status
Not open for further replies.

lumy

Programmer
Jul 25, 2001
3
CA
Hey, I have a textarea that i am writing to using Javascript. I need to know how to insert an enter character into the string. I tried \n but that didn't work. Please help!
 
hie, have u tryed %0a ? (hex code of '\n') regards, vic
 
This will do the trick:

Use & #13; (Carriage return) or & #10; (Line feed) in your text. But don't code the space between & and # because.
If I do that in this post than the character will be displaced instead of the code. So code &#...

Good luck,

Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top