Modal window in Advanced accordion
-
Hello guys I encountered an unexpected problem when using advanced accordeon.
each element of the accordion is a regular html table (which is saved as a template by default) the tables contain several names and each name has an “order” button – the table and the button are written with code (without using button by the elementor)
button calls a modal window which is located at the end of the table code, so I place these tables on relevant pages and when I click on “order” a modal window with a registration form appears.
On the main page I place an advanced accordion with a list of tables. By default, tables are hidden; when you expand each element of the accordion, a table with “order” buttons appears
But the thing is that inside the extended accordion, the modal window only appears when you click on the buttons from the first accordion element. That is, if I expand the second element in the accordion and click on order, I will not see a modal window, while I checked the js code for calling the window (on these same elements) and received a response in the console that the modal window is open, and when clicked, the classes on the modal window work correctly and I receive a positive response from the button.
But there is no modal window on page.
only in first element of the accordion when I click on any of the buttons I will get a modal window.
This question will make some people laugh: What to do?
- You must be logged in to reply to this topic.