Skip to content

Instantly share code, notes, and snippets.

@wescleymatos
Created August 30, 2011 14:58
Show Gist options
  • Save wescleymatos/1181086 to your computer and use it in GitHub Desktop.
Save wescleymatos/1181086 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