// Didn't want to use jQuery but i'm pressed for time :/ // Listen for click event on ".restab h2" $('.restab p').click(function(event) { // event.preventDefault(); // Add a class called ".current" $(this).addClass('active'); // Remove all siblings class. $(this).siblings().removeClass('active'); });