Toggle current clicked element | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Toggle current clicked element

How would I toggle on/off the clicked element? This is what I thought would work: $(function() { $(this).click(function() { $(this).toggle(); //$("div").toggle(); }); });

14th Apr 2019, 1:58 AM
Erik Torres
2 Réponses
14th Apr 2019, 4:29 AM
Gordon
Gordon - avatar
0
Thanks.
21st Apr 2019, 9:09 PM
Erik Torres