Skip to content
Advertisement

Unselect last pallet when selecting a new Pallet

I’ve been kind of stuck on this for a little bit and im in need of some assistance. I’m trying to make it where when I select a pallet it unselects the last selected pallet then selects the new one. I had an idea to do it but I feel like there’s a more efficient way going about this.

JavaScript

If anyone can give me some pointers on a good approach for this that would be much appreciated,

Advertisement

Answer

JavaScript

set active class on selected item and remove other item active class

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement