Skip to content

Instantly share code, notes, and snippets.

@richistron
Last active December 12, 2015 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richistron/4727816 to your computer and use it in GitHub Desktop.
Save richistron/4727816 to your computer and use it in GitHub Desktop.
$(selector).bind("change", function() {
return $.ajax({
success: function() {
return $(this).hide(function() {
return $(this).show("slow", function() {
return mainCallback(function() {
return alert("Hola Mundo");
});
});
});
},
error: function() {
return $(this).hide(function() {
return $(this).show("slow", function() {
return mainCallback(function() {
return alert("Hola Mundo");
});
});
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment