Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Sep 24, 2019
Embed
What would you like to do?
<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
<meta name="description" content="AJAX con jQuery y PHP">
<meta name="author" content="Parzibyte">
<title>Traer datos de PHP usando jQuery y AJAX</title>
<!-- Cargar el CSS de Boostrap-->
<link href="bootstrap.min.css" rel="stylesheet">
</head>
<body>
<main role="main" class="container">
<div class="row">
<!-- Aquí pon las col-x necesarias, comienza tu contenido, etcétera -->
<div class="col-12">
<h1>Petición AJAX GET con jQuery y PHP</h1>
<a href="//parzibyte.me/blog" target="_blank">By Parzibyte</a>
<br>
<button class="btn btn-success" id="btnCargarDatos">Traer datos</button>
<p id="respuesta"></p>
</div>
</div>
</main>
<script src="jquery-3.4.1.min.js"></script>
<script src="script.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment