SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Always learning kigoobe's Avatar
    Join Date
    May 2004
    Location
    Paris
    Posts
    1,563
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can we print a <tr> if a radio is checked ?

    Hi guys

    Just wondering, is it possible to print a <tr> (table row) depending on if a radio (located on a <tr> just above) is checked?

    Thanks for any suggestion.

  2. #2
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could set the style "display" to none on the on the table row you want to appear, and then have a function that fires when the radio button changes state that flips the display property to show the element. Yes.

    Regards,
    Jordan

  3. #3
    Always learning kigoobe's Avatar
    Join Date
    May 2004
    Location
    Paris
    Posts
    1,563
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well Jordan, I have tried that before, but problem is that the particular <tr> I'm speaking about is in between two <tr>s. So when I put display = none, of course it doesn't display that <tr>, but leaves an empty space there.


Bookmarks

Posting Permissions

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