I have 2 li’s that are clickable. On mouse click, I would like to change the class of 10 other divs on the page (not any of the divs being clicked on).
Here is the interaction I’m looking for:
-Clicking the first li sets the class of 10 divs to “class1”. (these classes are already set by default)
-Clicking the second li changes the same 10 classes to “class2”
-Toggle back and fourth
How is this done?
Here is a fiddle