Skip to content

Instantly share code, notes, and snippets.

Created Sep 24, 2019
What would you like to do?
<!doctype html>
<html lang="es">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,
<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">
<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="//" target="_blank">By Parzibyte</a>
<button class="btn btn-success" id="btnCargarDatos">Traer datos</button>
<p id="respuesta"></p>
<script src="jquery-3.4.1.min.js"></script>
<script src="script.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment