Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- nick = document.getElementById(nick);
- password = document.getElementById(password);
- //
- $(function(){
- $('#consultar').click(function() {
- var user = nick;
- var pass = password;
- $.ajax({
- type: "GET",
- url: "consulta.php",
- data: user&pass,
- error: function(jqXHR, textStatus, errorThrown) {
- console.log(jqXHR, textStatus, errorThrown);
- },
- cache: false,
- success: function(html){
- $("#resultado").html();
- }
- });
- });
- $( "p" ).click(function() {
- $( this ).slideUp();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement