Skip to content

Instantly share code, notes, and snippets.

@internoma
Created January 26, 2016 10:40
Show Gist options
  • Save internoma/f6aa3f14549341023c80 to your computer and use it in GitHub Desktop.
Save internoma/f6aa3f14549341023c80 to your computer and use it in GitHub Desktop.
callback de cualquier método jQuery
Con el método .promise().done(function(){ // your code here }); se consigue un callback de cualquier método jQuery
jQuery('#prueba').html(
"<h1>Esta es una prueba</h1>"
).promise().done(function(){
//your callback logic / code here
console.info('soy un callback de cualquier función jquery');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment