Results 1 to 3 of 3

Thread: toggle tables

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779

    toggle tables

    Does anybody know how to click on some text and then have a more text pop up below it? For example:

    Q. Please click here.
    A. blah, blah, blah

    When I click on the the first line I want the second line to appear.

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    you can stick the answer in a DIV and in it's style set visibility to hidden

  3. #3
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    take a look at this
    Code:
    <div id=dv1>
    <table><tr><td>easy table</td></tr></table>
    <button onclick="document.getElementById('dv1').style.display='none';document.getElementById('dv2').style.display='block';">advanced</button>
    </div>
    <div id=dv2 style="display:block">
    <table><tr><td>advanced table</td></tr></table>
    <button onclick="document.getElementById('dv1').style.display='block';document.getElementById('dv2').style.display='none';">easy</button>
    </div>

Posting Permissions

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



Click Here to Expand Forum to Full Width