Last active
December 17, 2015 19:18
-
-
Save ricardodantas/5659038 to your computer and use it in GitHub Desktop.
Simula Jquery ($.live())
This file contains hidden or 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
| /* | |
| * Pode ser usado o elmento pai do elemento que você quer manipular ou então usar o body | |
| */ | |
| // live() for Jquery >= 1.7 | |
| $('body').on('hover','.ElementoAlvo',function(){ | |
| //... | |
| }); | |
| //live() for Jquery <= 1.4 | |
| $('body').bind('hover','.ElementoAlvo',function(){ | |
| //... | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment