File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android 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.
I agree. Here's the link:
subject: getting text from textarea
Similar Threads
Preserve line breaks in textarea
problem with text area tabspace
How to store the newlines entered by enter key in textarea?
Please help with textarea formatting issues
Database Problem.