Hi there,
I’m trying to assign the element ID to a button in order to open a popup via a trigger on click.
Unfortunately, I can’t find an ID that I could use. Is it possible to assign an ID in another way?
Hi there,
I’m trying to assign the element ID to a button in order to open a popup via a trigger on click.
Unfortunately, I can’t find an ID that I could use. Is it possible to assign an ID in another way?
I found a Solution.
I use the Button install code and add id=“popup”
div id=“popup” class="elfsight-app-…
Why make things difficult when they can be easy.
Hi @Sina
Glad to see that you’ve found the solution! Yes, it will work if you are using our Button widget to trigger the popup.
But if you are using another button for this, you should its ID. Here is an article explaining how you can do this - Triggering your Popup widget on element click
Hi @Max,
welcome back from vacation. I hope you have recovered well.
I saw this guide. But a separate button is used here. My idea was to use a button from Elfsight.
Thank you
Got it! In this case, you’re very welcome to use your workaround.