Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX and text areas

 
Harish Maridi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have 2 select menus in jsp and 1 text area.
Based on the selection of the first menu, I am getting some values in the text area (I am using AJAX).
Now the problem is I am trying to add some more values based on the second menu, the values in the text area are replacing by newones.(using AJAX)

How do I make all the values available in text area.
please suggest me a way to do it.
Thanks in advance
-mark

[ July 01, 2008: Message edited by: Bear Bibeault ]
[ July 01, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The fact that this is in a JSP is moot.

If you are over-writing the value of the text area at the end of each Ajax call, then yes, the values will over-write each other.

If you want the values appended, just be sure to do that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic