Skip to content

Instantly share code, notes, and snippets.

@victorcosta12
Forked from wescleymatos/ajax.js
Created December 9, 2011 04:41
Show Gist options
  • Save victorcosta12/1450194 to your computer and use it in GitHub Desktop.
Save victorcosta12/1450194 to your computer and use it in GitHub Desktop.
Requisição ajax com jquery
$(function(){
$("#UsuarioLogin").blur(function(){
$.ajax({
type: "GET",
url: "valido/" + $(this).val(),
dataType: "json",
beforeSend: function(){
console.log("carregando...");
},
success: function(text){
console.log(text.cadastrado);
},
error: function(text){
console.log(text);
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment