Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container" id="contenedor">
- <script type="text/javascript">
- $(document).ready(function(){
- $("#botonAjax").on("click", function(){
- var nom = $("#nombre").val();
- $("#cargador").load(
- "$nom",
- {"nom" : nom }
- );
- });
- });
- </script>
- <input type="text" id="nombre" value=""/>
- <h1><button class="btn btn-info" id="botonAjax">Enviar</button></h1>
- </div>
- <div id="cargador">
- </div>
- <?php
- $nom = $_POST["nom"];
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement