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