I have added a class to an element when user clicks it:
$('.service-blurb').click(function() {
$(this).addClass('scrolls');
});
Now I want to add an event handler to the 'scrolls' class so when the user clicks again it scrolls.
$(document).on('click', '.scrolls', function() {
//scrolls nicely to that service description
});
THE PROBLEM: As soon as I click the first time on the '.service-blurb' element, it not only adds the class but it also scrolls. I want it to scroll only when the user clicks for the second time.