Answer the question
In order to leave comments, you need to log in
How to write a jQuery .on script correctly?
Please tell me there is a code
$('.list_punkt li.active').on('click', function(){
$('.list_punkt').addClass('active');
$('.list_punkt li.active').removeClass('active');
$('.list_punkt li').on('click', function(){
$(this).addClass('active');
$('.list_punkt').removeClass('active');
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question