Live Query plugin for jquery
by MichaĆ Kuklis on 16/12/2007It’s annoying to rebind events to their targets after Ajax request. You can read more about it here.
In order to fix it you can use Live Query plugin.
Instead of doing:
$('a').click(dosomething);
$('#htmlElement').load('server.php',function() {
$('a').click(dosomething);
});
you can now do:
$('a').livequery('click',dosomething);
$('#htmlElement').load('server.php');
There are 3 comments in this article: