Hiding a table row using Javascript

Discussion in 'Javascript' started by Mel, Apr 8, 2007.

  1. Mel

    Mel Guest

    <TR>
    <TD>
    <My for element with id=T100
    </TD>
    </TR>

    what I really want is something like:

    ParentOf (ParentOf (document.getElementByID("T100"))).display=
    'none'

    in other words "I like to hide the row" containing my form ele T100

    Is this possible ? if so how ?
    Mel, Apr 8, 2007
    #1
    1. Advertising

  2. Mel wrote:
    > <TR>
    > <TD>
    > <My for element with id=T100
    > </TD>
    > </TR>
    >
    > what I really want is something like:
    >
    > ParentOf (ParentOf (document.getElementByID("T100"))).display=
    > 'none'
    >
    > in other words "I like to hide the row" containing my form ele T100


    document.getElementById("T100").parentNode.parentNode.style.display =
    "none";

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Apr 8, 2007
    #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. F. Da Costa
    Replies:
    6
    Views:
    9,430
    Leif K-Brooks
    Dec 4, 2003
  2. phl
    Replies:
    1
    Views:
    4,328
    Martin Jay
    Jun 8, 2006
  3. jc
    Replies:
    10
    Views:
    3,625
    Kevin Scholl
    Jun 30, 2009
  4. D
    Replies:
    0
    Views:
    197
  5. Ste
    Replies:
    41
    Views:
    784
    Thomas 'PointedEars' Lahn
    Aug 1, 2007
Loading...

Share This Page