using display:none

Discussion in 'CSS' started by csk, Mar 17, 2008.

  1. #1
    Hi,

    I have to hide a row in a table? is it possible to use <div> for the contents of <tr> and then either display or hide depending on a click of a radio button.

    I tried doing this, but when i click radio 'Yes' i need to delete the row, and when i click radio 'No' i need to add it back.
    When i do a display:none onclick of radio yes, the div is removed. But when i try to add back by doing display:inline, the div is not displayed.

    Can someone help me on this. This is urgent.

    THanks
     
    csk, Mar 17, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That's behavior, which will require you to use JavaScript.
     
    Dan Schulz, Mar 17, 2008 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Though I eagerly await Xforms.
     
    Stomme poes, Mar 18, 2008 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Keep waiting then. About 10 years, in fact.
     
    Dan Schulz, Mar 18, 2008 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    : ( awwwwww
     
    Stomme poes, Mar 18, 2008 IP
  6. scorpion14

    scorpion14 Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    USe Javascript..
     
    scorpion14, Mar 18, 2008 IP