Advertisement
Guest User

codigo

a guest
Oct 27th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.30 KB | None | 0 0
  1. <h1>Ajax</h1>
  2. <button id="btn">Requisita</button>
  3.  
  4. <div id="resultado"></div>
  5.  
  6. <script src="js/jquery-3.1.1.min.js"></script>
  7. <script>
  8. $('#btn').click(function(){
  9.    
  10.     $.ajax({
  11.         url: 'hello.php',
  12.         dataType: 'html',
  13.         success: function(resposta){
  14.             console.log(resposta)
  15.         }
  16.     });
  17. });
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement