Solved

Skip To Next Line In A textarea?

Posted on 1998-06-08
3
576 Views
Last Modified: 2008-03-03
How Can I Send A "Skip To New Line" Command In A textarea.
For Example:
document.testbox.text.value = document.testbox.text.value + "next line command" + newtext;
Please Let Me Know If And How This Can Be Done Or How Come This Can't Be Done.
otto

0
Comment
Question by:refr
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
cyberwizz earned 50 total points
ID: 1279680
You can use

\n   -   New line
\t    -   Tab

document.testbox.text.value = document.testbox.text.value + "\n" + newtext;
0
 

Author Comment

by:refr
ID: 1279681
I THought I Tried That But Aperently I Must Have Been Using /n Instead.
Thanks
0
 
LVL 2

Expert Comment

by:cyberwizz
ID: 1279682
It's a common mistake to do the other slash. In fact when I submitted the answer I almost put the wrong one down. :-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question