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

$('.box').on('click',function(){
$('.box').removeClass('active');
$(this).addClass('active');
});
Jquery select all that aren’t this

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!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store