[jQuery] Re: Simple/short way to bind one event to multiple objects?

2009-09-15 Thread Mr Speaker
you can select multiple objects in the selector, like: $ (#obj1,#obj2,#obj3).change(...) On Sep 15, 7:42 am, cgp cgpala...@gmail.com wrote: I have 2 or more objects that onclick(), will call the same function. Right now I have the following: $(#obj1).change( function() {        

[jQuery] Re: Simple/short way to bind one event to multiple objects?

2009-09-15 Thread KeeganWatkins
The change event handler can also be passed by reference, avoiding the need for the closures (#obj1,#obj2,#obj3).change( setupPage ); On Sep 15, 7:40 am, Mr Speaker mrspea...@gmail.com wrote: you can select multiple objects in the selector, like: $ (#obj1,#obj2,#obj3).change(...) On