tags:

views:

397

answers:

1

Hi,

Does jQuery have an equivalent method to YAHOO.util.Event.addListener ?

+7  A: 

Yes.

Check out bind. You can do something like

$("#elementID").bind("click", function(e) {
    // whatever you want
});

or you can call click directly

$("#elementID").click(function(e) {
    // whatever you want
});
pope