Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Ajax</h1>
- <button id="btn">Requisita</button>
- <div id="resultado"></div>
- <script src="js/jquery-3.1.1.min.js"></script>
- <script>
- $('#btn').click(function(){
- $.ajax({
- url: 'hello.php',
- dataType: 'html',
- success: function(resposta){
- console.log(resposta)
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement