Re:JQuery 3.4.0 Released
by benbristow on Thursday April 11, 2019 @03:29AM
(#19631904)
Well it gets more complex when there’s more business rules. Like if you have 1 checkbox checked need to show this one bit but if you have 2 need to show all of them. It’s just an example.
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.
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