by romanovcode · 7y ago · 0 comments
Also, maybe it is from lack of experience. Because you can add classes to your elements and depending on them you can hide/show all of them with just
$('.toggle-element').toggle();Trying to scope it all gets a bit unruly too. Your example would target every element on the page. If you have nested components it’s a nightmare.