473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Textarea content

I have a function on my webpage that inputs content into a textarea. Everytime a button is clicked the information is inputted into the text area. But I'd like to change the format of how it is entered into the textbox. What I'd like to know is, is it possible to have each new input on a new line rather than all being on the same line. like this:

1
2
3
4
5
etc...

Rather than it being inputted like this:

1,2,3,4,5 etc.....



Thanks
Jan 14 '08 #1
2 1575
gits
5,390 Expert Mod 4TB
hi ...

you may add a '\n' (linefeed) to the textarea's current content every time you click the button ... please post the code you have so far, so that we have something to work with :)

kind regards
Jan 14 '08 #2
hi ...

you may add a '\n' (linefeed) to the textarea's current content every time you click the button ... please post the code you have so far, so that we have something to work with :)

kind regards
I did try to use that '\n' but it didn't seem to work, maybe I put it in the wrong part of my code? I also tried to use CSS to do it but that didn't work either.

My code so far:

Expand|Select|Wrap|Line Numbers
  1.                               function Go_Go(){
  2.  
  3.                   var input1=navigation.url_out.value;
  4.  
  5.                   url1.push(input1);
  6.  
  7.                   navigation.url_out.value=navigation.url_in.value;
  8.  
  9.                   navigation.back_stack.value=url1;
  10.  
  11.                   document.navigation.forward_stack.value='';
  12.  
  13.                   }
So when the button is pushed I would like the data entered to be put on a new line.
Jan 14 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Matt | last post by:
I have a textarea that is populated from a blob within a database. Everytime the data is pulled, however, there is always a lot of leading space characters before the actual text. It is not in the...
0
by: Krzysztof Fink-Finowicki via .NET 247 | last post by:
I have problem with TEXTAREA HTML tags in my Web application (MSIE 6.0). User fills-in content of TEXTAREA on HTML dialog window. After accepting, content of TEXTAREA from dialog window is...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
2
by: danielboendergaard | last post by:
Hey Im making a homepage in php. I use a html form to put data into mysql and i want to make some buttons which inserts user input values into a textarea. I have used a button like this: <input...
4
by: Sheldon Glickler | last post by:
I use Dreamweaver as my development IDE. When I create a textarea, put stuff in, save it to the database, and recall it to the textarea later, it alway comes up with what looks like a large tab...
2
by: Ivor Somerset | last post by:
Hello, At http://tuckey.org/textareasizer/ there's a script that autoresized the height of the textareas in a form so that it matches the content. This is a very interesting capability, however...
1
by: nagamalli26 | last post by:
hai iam new php. i am creating admin side. i wrote this, phpcode: <?php //include_once("config.php"); $con=mysql_connect("localhost","root",""); mysql_select_db("happysalary"); ?>
1
by: nubster21 | last post by:
I would like to split a string of HTML output into an array on textarea tags. Example: <div>Hello this is my content <textarea>foo</textareaand this is also content <b>some bold...
9
by: qiqinuinaifen128 | last post by:
Hi Pro, I have a question i have an textarea for user to key in and a button for user to save what they key in into the textarea. if i key in '"\ in to textarea and i press the button save...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.