hercioneto

exemploJQuery.html

Apr 16th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.93 KB | None | 0 0
  1. <!DOCTYPE html>
  2.   <head>
  3.     <meta charset="utf-8" />
  4.     <meta name="description" content="Uso do  JQuery Mask" />
  5.    
  6.  
  7.    
  8.     <title>Exemplos.</title>
  9.  <link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
  10.   </head>
  11.  
  12.   <body>
  13.   Oi
  14.   <p>O parágrafo vai sumir quando clicar no botão</p>
  15.   <button class="some">Clique</button>
  16.     <button id="volte">Volte!</button>
  17.   <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>  
  18.  
  19.   <script>
  20.  
  21.     $( document ).ready(function() {
  22.          alert("Oi.");
  23.          $("#volte").hide(1000);
  24.          
  25.          $(".some").click(function(){
  26.             $("p").hide(1000);
  27.             alert("O parágrafo sumiu");
  28.             $("#volte").show(1000);
  29.             $(".some").hide(10);
  30.         });
  31.        
  32.         $("#volte").click(function(){
  33.             $("p").show(1000);
  34.             $(".some").show(1000);
  35.             $("#volte").hide(100);
  36.            
  37.            
  38.         });
  39.    
  40.          
  41.     });
  42.    
  43.  
  44.  
  45.     </script>
  46.   </body>
  47.  </html>
Add Comment
Please, Sign In to add comment