Hide all element's that doesn't have the Class

Hide all element's that doesn't have the Class

Hi, 

I've been a bit stuck, can anybody help me please.

I want a simple operation, get the class of the clicked item and hide all elements inside of .rs-tabs that doesn't have the class of the clicked element and show the one witch has the same class.

Here's the codepen I'm working on.


Any help is appreciated,

Best wishes,