florida
05-12-2004, 05:29 PM
Please advise how I can handle Textarea entries on the client side where if sometone types in an entry and hits enter to enter new data it would show up on different lines on my action page.
For example in my Form Textarea with a field called city:
The user would enter several cities in the form textbox like this:
San Francisco
San Diego
Denver
My form would then process this and show on my action page as:
San Francisco San Diego Denver
I want it to show with newlines on my action page just as it was entered in the textbox:
San Francisco
San Diego
Denver
Here is my Textarea on the page:
<TEXTAREA name="city" ROWS="4"></TEXTAREA>
Can I do this with JavaScript?
For example in my Form Textarea with a field called city:
The user would enter several cities in the form textbox like this:
San Francisco
San Diego
Denver
My form would then process this and show on my action page as:
San Francisco San Diego Denver
I want it to show with newlines on my action page just as it was entered in the textbox:
San Francisco
San Diego
Denver
Here is my Textarea on the page:
<TEXTAREA name="city" ROWS="4"></TEXTAREA>
Can I do this with JavaScript?