The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

button

View previous topic View next topic Go down

button

Post by sample123 on June 21st 2013, 1:27 pm

Good evening,

i want one button which when i click it to display three others buttons.

sample123
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Re: button

Post by sample123 on June 22nd 2013, 4:55 pm

bump

sample123
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Re: button

Post by Spyro Dragon™ on June 26th 2013, 12:56 pm



Just make more html pages with the buttons and use that for example.

Spyro Dragon™
Forumember

Male Posts : 202
Reputation : 2
Language : English

http://SpyroDragon.com

Back to top Go down

Re: button

Post by levy on June 26th 2013, 1:38 pm

Code:
<html>
 <head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
    $(document).ready(function(){

        $(".buttons").click(function () {
        var divname= this.value;
          $("#"+divname).show("slow").siblings().hide("slow");
        });

      });
</script>
    </head>
        <body>


 <div id="buttonsDiv">

  <input type="button" id="button1" class="buttons" value="button"></input>


  </div>

  <div>

    <div id="button" style="display:none">
    Hello World
    </div>



        </div>

<script>$(".buttons").click(function () {
        var divname= this.value;
          $("#"+divname).slideToggle().siblings().hide("slow");
        });</script>
    </body>
    </html>

Try this one , replace from value="button" - button with your button text and Hello World with content.

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum