jquery livequery event triggered on EVERYTHING, not just selected element.
- by phazei
I am attempting to use livequery. I unfortunately am stuck using jquery 1.2.6.
This is my code:
$(document).ready(function() {
$('a.sort').livequery('click', function(event) {
alert('hello');
});
});
If I click ANYWHERE in the document, I get the alert 'hello'.
What exactly is wrong there? Is it some bug with jQ1.2.6 and livequery 1.1.1?
This same question was asked here but the question wasn't clear, and the answer didn't help.