JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
get text of textarea in html Posted by rezaab2002 on 17 Mar 2002 at 11:06 AM
how can i get the text of textarea object in html?
Report
Re: get text of textarea in html Posted by Secret_Doom on 18 Mar 2002 at 10:42 AM
Use:
document.formname.textareaname.value

Example:
<html><body>
<form name="frm1">
<textarea name="txt1" COLS=40 ROWS=5></textarea>
</form>
<input type="button" value="GET"
onclick="alert(document.frm1.txt1.value)">
</body></html>


-- Secret_Doom - Leonardo Pignataro --

secret_doom@hotmail.com
www.batch.hpg.com.br

: how can i get the text of textarea object in html?
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.