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 How to fix Gitlab CI error during connect: Post http://docker:2375/v1.40/auth: dial tcp: lookup docker on … no such host NodeJS: Update all the packages to current versions with NPM Vagrant offline installation