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: $("#controlOne, #controlTwo").click(function () { do_something(); }); 2 September 2016, admin FrontEnd 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 Learn and explore Azure Storage account for free with Azurite Vite vs Create-react-app Hotkeys to transform text to UPPERCASE or to LOWERCASE in Visual Studio and Visual Studio Code Top 10 postsNew Posts at the siteLearn and explore Azure Storage account for free with AzuriteMarch 29, 2025 Vite vs Create-react-appMarch 17, 2025 Hotkeys to transform text to UPPERCASE or to LOWERCASE in Visual Studio and Visual Studio CodeMarch 4, 2025 How to fix error WSL (12 - Relay) ERROR: CreateProcessParseCommon in Windows 11February 28, 2025 My case of crashing the laptop with the connected external monitorFebruary 20, 2025