Archive for the ‘jquery’ Category
Live Query plugin for jquery
It’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');