Answer the question
In order to leave comments, you need to log in
Popup window on two buttons... How to do?
Hello.
There is a portal - neveste.by
There is a button on the main page - registration. When you click on it, a registration window pops up.
And there is a page neveste.by/pages/price
I somehow attached a button there on my own, but when you click on it, no registration form pops up ... The question is, how to file it? -)
Answer the question
In order to leave comments, you need to log in
The button on top has the same id as the one you placed below it. Therefore, the pop-up window works on the id that it sees first.
You need to edit the script that calls this window so that it calls it by a different id for another button, for example. There are many options.
do not use elements on the page that have the same id, i.e. id must be unique and one on the page, you have 2 of them. If you want a pop-up window to be called when clicking on several elements, set different ids for them and edit the window call script or one common class.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question