Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Skip To Next Line In A textarea?

Posted on 1998-06-08
3
Medium Priority
?
580 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
cyberwizz earned 200 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…

670 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