• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retaining text area input text format

 
Ragupathirajan Venkatesan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have one jsp form which has text area element, if enters the numbers 1 2 3 4 in vertical (means new line). I want to maintain the same format what ever i am entering in request form to the confirmation form(next page). Is there way in java script to achive this. Please suggest. Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you think that JavaScript needs to get involved?

Just format the markup correctly with newlines in the correct places.
 
Ragupathirajan Venkatesan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

Thanks for the reply. But I passed the values to escape & unscape functions respectively in java script which made spaces and newlines properly and i used in next page for display. I got this from one of my friend. No extra work is done
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!