Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pt-br">
- <head>
- <meta charset="utf-8">
- <title> Cadastro de Pessoas </title>
- <link rel="stylesheet" href="estilo.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
- </head>
- <body>
- <script>
- $(document).ready(function(e){
- $("#search").keyup(function(){
- $("show_up").show();
- var text = $(this).val();
- $.ajax({
- type: 'GET',
- url: 'pesquisa.php',
- data: 'txt='+ text,
- success: function(data){
- $("#show_up").html(data);
- }
- });
- })
- });
- </script>
- <input type="text" name="names" id="search" />
- <div id="show_up"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement