# Multiple HTML Element IDs for on Click trigger

**URL:** <https://community.elfsight.com/t/multiple-html-element-ids-for-on-click-trigger/83484>\
**Category:** Popup\
**Tags:** Gathering-Feedback\
**Created:** [November 16, 2024, 7:20pm UTC](https://community.elfsight.com/t/multiple-html-element-ids-for-on-click-trigger/83484 "2024-11-16T19:20:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![user10656](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/user10656/32/21326_2.png) [@user10656](https://community.elfsight.com/u/user10656)\
**Post date:** [November 16, 2024, 7:20pm UTC](https://community.elfsight.com/t/multiple-html-element-ids-for-on-click-trigger/83484/1 "2024-11-16T19:20:17Z")

</div>

Hi! I’d like to suggest adding support for multiple triggers (buttons, texts, blocks, etc.) for the same popup across different pages. Currently, using specific triggers is limited because IDs must be unique within the HTML document, which makes reusing popups more difficult. Allowing multiple IDs or flexible trigger options (like classes) would greatly enhance usability. Thanks!

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 2, 2024, 2:48pm UTC](https://community.elfsight.com/t/multiple-html-element-ids-for-on-click-trigger/83484/2 "2024-12-02T14:48:31Z")

</div>

Hi there, @user10656 👋

This is a great idea thanks for sharing! If more users upvote it, we’ll try to think it over in the future 🙂

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 2, 2024, 3:16pm UTC](https://community.elfsight.com/t/multiple-html-element-ids-for-on-click-trigger/83484/3 "2024-12-02T15:16:28Z")

</div>

@user10656 Although, it’s impossible to add multiple HTML IDs in the settings, there is a way to do this using the custom code.

For this, we need to know the pages where the widget is installed and the elements you’d like to use for triggering the popup.

Could you please share this info?

---

<div class="post-metadata">

**Author:** ![Natasha\_Lutsevich](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/natasha_lutsevich/32/64404_2.png) [@Natasha\_Lutsevich](https://community.elfsight.com/u/Natasha_Lutsevich)\
**Post date:** [April 29, 2025, 5:09am UTC](https://community.elfsight.com/t/multiple-html-element-ids-for-on-click-trigger/83484/4 "2025-04-29T05:09:06Z")

</div>

I have the same problem

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [May 12, 2025, 1:08pm UTC](https://community.elfsight.com/t/multiple-html-element-ids-for-on-click-trigger/83484/6 "2025-05-12T13:08:40Z")

</div>

Hi there, @Natasha_Lutsevich 👋

I deeply apologize for the delayed response!

Could you please share a link to the page where your widget is installed and specify the elements that should trigger the popup?

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [May 12, 2025, 1:38pm UTC](https://community.elfsight.com/t/multiple-html-element-ids-for-on-click-trigger/83484/7 "2025-05-12T13:38:49Z")

</div>

A post was merged into an existing topic: [Pop Up only responds to first Element](https://community.elfsight.com/t/pop-up-only-responds-to-first-element/119939/4)
