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 Vagrant offline installation Basic commands for Docker Vi shortcuts