Skip to content

Instantly share code, notes, and snippets.

@gnuget
Created February 8, 2009 02:21
Show Gist options
  • Save gnuget/60145 to your computer and use it in GitHub Desktop.
Save gnuget/60145 to your computer and use it in GitHub Desktop.
example about how use livequery (jquery plugin)
//Amarramos a las anchors un evento
$(document).ready(function(){
$("a").livequery('click',function(event){
alert("hola mundo!");
});
});
//Con livequery unicamente nos preocupamos por hacer nuesta llamada
//live query se encarga de re-ligar los eventos :D
$.ajax({
type: "POST",
url: "patito.php",
success: function(msg){
$("#div").append(msg);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment