RealDevTips > Development > React > Click this or that element in jQuery Click this or that element in jQuery Published on September 2, 2016 by Aleksei 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(); }); Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment.
Leave a Reply