Binding multiple events in jQuery

Posted by Lachlan McDonald on Stack Overflow See other posts from Stack Overflow or by Lachlan McDonald
Published on 2010-04-18T10:04:02Z Indexed on 2010/04/18 10:13 UTC
Read the original article Hit count: 589

Filed under:
|

I have a custom jQuery plugin which binds a change event to a form element, in this case some input elements. The change event is used to indicate to some other components that a change has taken place.

This works as it should.

However, I've come across the need to bind an additional change event to the same input elements -- so that additional components can act on the event. I don't wish to replace the plugin's change, simply run an additional function afterwards.

Is there any way to bind multiple events in jQuery, or, what is the best method for accomplishing this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery