Toggle current clicked element | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas
14th Apr 2019, 4:29 AM
Gordon
Gordon - avatar
0
Thanks.
21st Apr 2019, 9:09 PM
Erik Torres