Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display multiple values in textarea using JavaScript

 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am new to JavaScript.

I have two textareas on my JSP and i want to display value from one text area to another textarea by selecting that particular value from one text area that value should be diaplayed to other textarea but when i select next value the previous value is lost.

How could i retrieve all the values selected from first textarea?

Following are the snippets i have used in JSP:

//MoveOver function in Javascript



//Calling Moverover from JSP




Could anyone please help on above.

Thanks in Advance.
 
Zandis Murāns
Ranch Hand
Posts: 174
Java Java ME Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create function that goes through all checkboxes and add values like:

execute this function on all checkboxes change event.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic