This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes getting text from textarea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "getting text from textarea" Watch "getting text from textarea" New topic

getting text from textarea

Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
Using JavaScript, I want to get the text that a user inputs into a textarea and parse it. What attribute should I use? For a text element, I should use the attribute .VALUE right? How about a textarea?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
How about you use .value also.

Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
Thank you.
It is sorta covered in the JavaRanch Style Guide.
subject: getting text from textarea
Similar Threads
Please help with textarea formatting issues
Database Problem.
How to store the newlines entered by enter key in textarea?
Preserve line breaks in textarea
problem with text area tabspace