How do I do when I click on a button to see another one below [closed]

0

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

    
asked by anonymous 07.10.2016 / 00:04

1 answer

3

Dude you have to use JavaScript.

Here is a 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><buttonid="button1">Botão 1</button>

<button hidden id="button2">Botão 2</button>
    
07.10.2016 / 00:16