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

6th Jan 2019, 10:29 PM
Axelle
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
6th Jan 2019, 10:45 PM
Arushi Singhania
Arushi Singhania - avatar
0
thank's a lot 😁
7th Jan 2019, 12:26 PM
Axelle
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
8th Jan 2019, 6:41 PM
Axelle