Add a class to a div depending on which term was clicked
The taxonomy term that is click will already have the class "active" applied to it.

The selector .field-type-taxonomy-term-reference a.active is the one you are probably looking for.