popup hint not working? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

popup hint not working?

Hi guys, I tried to make an anchor that when you click on it it give a hint. There is something missing here and I can't figured it out. Thanks for your help. https://code.sololearn.com/WxhZ8Hk7Kmpq/?ref=app

2nd Jul 2018, 2:33 PM
Spider38E
Spider38E - avatar
3 Réponses
+ 1
Janning⭐ it's on mouse over Jonathan Pizarra I forgot the document ready! lol I will change the anchor for a list thank you it work now!
2nd Jul 2018, 3:27 PM
Spider38E
Spider38E - avatar
+ 1
Spider38E you should use click event on the anchor. And use toggle() to hide and show it on every click. Here's a working code: https://code.sololearn.com/WP52pF2pHQCy/?ref=app
2nd Jul 2018, 2:54 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
0
Hi Spider38E , Just to clarify, you wanted the popup to show up on click instead of on mouseover/enter?
2nd Jul 2018, 2:46 PM
Janning⭐
Janning⭐ - avatar