Categories
How to add active class when jq is clicked?
Answer the question
In order to leave comments, you need to log in
$(document).on('click', '.clicked-element', function() { $(this).addClass('active'); });
$('.clicked-element').click(function() { $(this).addClass('active'); });
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question