Created
January 26, 2016 10:40
-
-
Save internoma/f6aa3f14549341023c80 to your computer and use it in GitHub Desktop.
callback de cualquier método jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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