Skip to content

Instantly share code, notes, and snippets.

@ricardodantas
Last active December 17, 2015 19:18
Show Gist options
  • Save ricardodantas/5659038 to your computer and use it in GitHub Desktop.
Save ricardodantas/5659038 to your computer and use it in GitHub Desktop.
Simula Jquery ($.live())
/*
* 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