Click this or that element in jQuery If you want to set the same action for several elements, you can write IDs of elements separated by comma. This way: Click this or that element in jQuery JavaScript $("#controlOne, #controlTwo").click(function () { do_something(); }); 123 $("#controlOne, #controlTwo").click(function () { do_something(); }); 2 September 2016, admin HTML & CSS Tags: frontend, Javascrpt, jQuery Comments: (0) No Comments » No comments yet. RSS feed for comments on this post. TrackBack URL Leave a comment Name (required) Mail (will not be published) (required) Website New posts SQL recursive query from bottom to top Common error after installation of MS SQL server 2012 NodeJS. Fix error "create react app npm ERR! Maximum call stack size exceeded"