Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > get name of form onchange of textarea

Reply
Thread Tools

get name of form onchange of textarea

 
 
libsfan01
Guest
Posts: n/a
 
      07-23-2006
hi all!

how can i get the name of the form a textbox is in when onchange?

kind regards

Marc

 
Reply With Quote
 
 
 
 
RobG
Guest
Posts: n/a
 
      07-23-2006
libsfan01 wrote:
> hi all!
>
> how can i get the name of the form a textbox is in when onchange?


Form controls have a 'form' property that refers to the form they belong to:

<form name="formA" action="">
<textarea onchange="alert(this.form.name);"></textarea>
</form>


--
Rob
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i retrieve the name of form when one of the element name in this form is 'name' ashok.dhananjeyan@gmail.com Javascript 6 11-24-2006 02:54 AM
Textarea Inside of a textarea wperry1@gmail.com ASP General 6 02-05-2006 08:00 AM
Read form "name" attribute when it contains form field with name "name" Pavils Jurjans Javascript 3 03-18-2005 01:39 PM
newbie question: onchange select box inserts image to textarea lawrence Javascript 2 06-02-2004 03:25 AM
Removing carriage returns from <textarea></textarea> input Augustus ASP General 1 09-10-2003 04:55 AM



Advertisments