Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //
  2. nick = document.getElementById(nick);
  3. password = document.getElementById(password);
  4. //
  5. $(function(){
  6. $('#consultar').click(function() {
  7. var user = nick;
  8. var pass = password;
  9.  
  10. $.ajax({
  11. type: "GET",
  12. url: "consulta.php",
  13. data: user&pass,
  14. error: function(jqXHR, textStatus, errorThrown) {
  15. console.log(jqXHR, textStatus, errorThrown);
  16. },
  17. cache: false,
  18. success: function(html){
  19. $("#resultado").html();
  20. }
  21. });
  22. });
  23.  
  24. $( "p" ).click(function() {
  25. $( this ).slideUp();
  26. });
  27.  
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement