Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Location
    NJ - #29 if you must know
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Making Table Rows disappear...

    I'm looking for some examples of manipulating
    tables that were created by HTML, and not
    created by javascripting.

    ie. Adding/Removing rows, but more importantly
    does each row of the table have the ability to have
    it's ".style.display" set/reset?

    Thanks
    George

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    São Paulo, Brazil
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can put an id to the tr-element and use tr.style.display=(show?'block':'none');

    Have a look at Vladdy's dynamic table example for more info. I think the function to sort the table may help you. Look for:

    function sort(TID, colNum,dir)
    /Daniel

  • #3
    Regular Coder
    Join Date
    Jul 2003
    Location
    NJ - #29 if you must know
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Danne
    [B]You can put an id to the tr-element and use tr.style.display=(show?'block':'none');
    I'll give this a try.

    Thanks
    George


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •