www.webdeveloper.com
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17

Thread: show / hide button

  1. #16
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,467
    Hi there spiderman11,
    javaman, why you don't use this thread?
    The reason is that this thread is nearly THREE YEARS OLD.
    It must be fairly certain that he no longer has his original problem, or heavens forbid, he is dead.

    Surely the real question should be....
    Why on earth did you bother to resurrect it?
    coothead

  2. #17
    Join Date
    Jul 2013
    Posts
    1

    spiderman11

    Quote Originally Posted by spiderman11 View Post
    That is very big code.My code is simple.Hide mode is default :-)
    Code:
    <style type="text/css">
    <!--
    body{
    background:#ccc;
    font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size:1em;
    }
    -->
    </style>
    
    <script>
    function change(id,vis){
    document.getElementById (id).style.display=vis;
    }
    </script>
    <div style="display:inline" id="super" onclick="change ('qu','block');change ('super','none');">+</div>   Qui
    <div style="display:none" id="qu" onclick="change ('super','inline');change ('qu','none');">- Ans</div>
    Hi my names Alex. I used this code and it works great! I was just wondering if I could use this code more than once on the same page using different scripts? Cause it worked for me but was only able to use it on one description. :/ Hope this question makes sense.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles