How do I stop when I click one button appear another below

Asked

Viewed 1,223 times

0

Hello I would like when I click on a button open another link and on the same page appear another button without deleting the 1°

  • You need to specify better what you want to do, with which languages? Do you want to do this only with HTML? You will need Javascript for this. In this case, are you using jQuery or do you want to do it with pure Javascript? Will this hidden button be pressed at the beginning of the page (before it appears when you click the other button) or will it be pressed dynamically? Your question is very vague.

1 answer

3

Dude you have to use Javascript.

Follows in functional example with jQuery:

$(document).ready (function() {
  
  $("#button1").click( function() {
    
    $("#button2").fadeIn("slow");
    
    });
 
  
  });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<button id="button1">Botão 1</button>

<button hidden id="button2">Botão 2</button>

  • html in my blogger

  • ? How so? Blogger must have Javascript, just find a way to create some lines of code

  • yes javascript,I want when I clicked my button create another one below and open a link in another tab

  • good afternoon, has how to show a button to submter a form, instead of when clicking a button?

  • Dude, you need to capture the "Submit" event from the form and perform the function you want to show the button

Browser other questions tagged

You are not signed in. Login or sign up in order to post.