I am creating a Javascript program where I would like to make styling changes to an element by its class name. There are multiple elements with this class name but I want to target the one that is clicked. These are dynamically created.

The reason I have not pasted my code is because I do not want an answer based on what I am doing, I just want to know how to do this.

Sorry if this is confusing in any way.