0
Different button
Hello I have 2 diffĂ©rents buttons who give 2 differents popups, how the code know in js if i want the first or second popups because itâs« button » for the 2 different buttons... i have tryed to put a different class in thĂ© tag button for do the diffĂ©rence but i donât know if in js is good ? Thankâs to see my code https://code.sololearn.com/WmPvQaKHvEQJ/?ref=app
3 RĂ©ponses
+ 12
There were a few mistakes in ur html and jQuery part.
You forgot to change modalbox1 to modalbox2 in second part and in jQuery, u used both button and its class which was the problem. I have modified some text so that u can see that it is working. Just remove modified here text.
https://code.sololearn.com/WQcvx0SBASN9/?ref=app
0
thank's a lot đ
0
hello
i have just a little problem, the second button is visible on the first popup and i would that he is unvisible like the second popup...
thank's