Using Jquery to select all div’s that aren’t “this” div

1 min readJun 19, 2020

--

Chances are if you are using Jquery, you will have come across a situation where you want the element you click on to take on a certain class and you want this class to be removed from all other elements.

This is really quite simple. All you need to do is add the class to the element you click on using this and remove it from all other elements of the same class name…

--

--

Hi Im Holly! I’m from New Zealand. I’m in my first job as a Front End Web Developer and want to share my learnings and thoughts along the way!