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(); }); });
2 ответов
0
.on('click')
.off('click')
https://www.sololearn.com/learn/jQuery/2808/
0
Thanks.