Home html translation to the new line Textarea

translation to the new line Textarea

Author

Date

Category

There appeared a problem, you need to postpone the string in TextAREA. Usually used & amp; # 013; & amp; # 010;, but if you try to generate the contents through JS, the row translation symbols will be read as text.

How is it better to get their this position?

Apply the FID for clarity:

http://jsfiddle.net/happycougar/nhhs9/1//

Answer 1, Authority 100%

$ ("textarea"). HTML ("This Is My Statement One. & amp; # 13; & amp; # 10; This is my statement2 ");

or

$ ("textarea"). HTML ("This is My Statement One. \ Nthis is My Statement2");

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions