I have been trying out some experiments and I got curious if there is a way to eliminate a class from a div in all divs except the specified one:
$(function() {
$('#tab-2').click(function() {
$(!"#tab-1").removeClass("current");
});
In essence, what I need is a code snippet that can remove a specific class from every div except those with the id #tab-1. It should be triggered on click event rather than as a toggle.