Not strictly an ExpressionEngine query, but I have faith in this community.
Here’s a show-hide puzzler from a JQuery newbie:
I want to do some show-hide magic on an unordered list with hundreds of <li> elements.
If I apply the same class to the trigger elements and the target elements, what JQuery code will enable a click on a trigger with a certain class to show the list elements with the same class, and hide all others?
That is to say, if I have a trigger with class “foo”, what JQuery code will match and show-hide target elements also of class “foo”?
Sorry if I’m using the wrong terminology. This is new. And powerful!