get name of form onchange of textarea

Discussion in 'Javascript' started by libsfan01, Jul 23, 2006.

  1. libsfan01

    libsfan01 Guest

    hi all!

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

    kind regards

    Marc
    libsfan01, Jul 23, 2006
    #1
    1. Advertising

  2. libsfan01

    RobG Guest

    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
    RobG, Jul 23, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Augustus
    Replies:
    1
    Views:
    333
    Ken Schaefer
    Sep 10, 2003
  2. Textarea Inside of a textarea

    , Feb 4, 2006, in forum: ASP General
    Replies:
    6
    Views:
    312
    Anthony Jones
    Feb 5, 2006
  3. lawrence
    Replies:
    2
    Views:
    193
    lawrence
    Jun 2, 2004
  4. Pavils Jurjans
    Replies:
    3
    Views:
    167
    Pavils Jurjans
    Mar 18, 2005
  5. Replies:
    6
    Views:
    151
Loading...

Share This Page