matching an element's class to another element's ID, or *part* of another element's ID
- by shecky
hello again
Such a simple concept but I'm struggling to express it ... apologies in advance for my verbosity.
I have a container div with a class, e.g., ; I want to use that class to do two things:
add a class (e.g., 'active') to the nav element whose ID matches the class of div#container (e.g., #nav-primary li# apples)
add the same class to…