jquery livequery event triggered on EVERYTHING, not just selected element.

Posted by phazei on Stack Overflow See other posts from Stack Overflow or by phazei
Published on 2010-03-24T00:07:21Z Indexed on 2010/03/24 0:13 UTC
Read the original article Hit count: 787

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about livequery

Related posts about jQuery