Different button | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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