Javascript – Show div based on changed span class
Let's say that I have two span elements. Class is changing width "selected" based on which one is selected. I just need to know when span2 is selected or not. <span class="swatch swatch-image span1"> <span class="swatch swatch-image span2 selected"> I'm…