By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,570 Members | 1,734 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,570 IT Pros & Developers. It's quick & easy.

get name of form onchange of textarea

P: n/a
hi all!

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

kind regards

Marc

Jul 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.