Created
February 8, 2009 02:21
-
-
Save gnuget/60145 to your computer and use it in GitHub Desktop.
example about how use livequery (jquery plugin)
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
//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