klickable answers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • falheim
    New Member
    • Jun 2010
    • 2

    klickable answers

    Ok.. im nearly up and running with the guilds website.. now i'm stuck.. spending several hours google it.

    Im doing an application form and got it working as far as input/output goes.. now to my problem...

    I want to retrieve 3 fields of 10 (name,race,role ) and display them in a row . (that i have succsessfully done) but i want them to be clickable and when i cklick on them i want the whole row (all 10 fields) to be displayed

    can anyone plz give me a hint or 2
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    PHP alone won't do this. You need some JavaScript too. I would move you over there but I'm not a moderator anymore.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      You can either load all 10 rows initially or load the remaining rows later (would add complexity).

      Have the 7 rows initially hidden (the display property should be "none"). Then onclick, change the style.display property to ''[*].

      [*] because of some browser differences, setting it to the empty string should make it work assuming it's a table/table cells.

      Comment

      • RamananKalirajan
        Contributor
        • Mar 2008
        • 608

        #4
        Are you asking like this

        Thanks and Regards
        Ramanan Kalirajan

        Comment

        • falheim
          New Member
          • Jun 2010
          • 2

          #5
          thank you i will try that

          Comment

          Working...