Answer the question
In order to leave comments, you need to log in
How to do it in jQuery?
Trying to make tabs: https://jsfiddle.net/ .
Question: how can I make it so that when I select the next tab, the class that makes it active is removed from the previous one?
Answer the question
In order to leave comments, you need to log in
$(".tabs").removeClass('active')
$("#newClickedTab").addClass('active')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question