add and remove class on each list item jquery one by one code example
Example: add and remove class in jquery
$('#toggle li').on('click', function () {
$(this).toggleClass('open')
});
$('#toggle li').on('click', function () {
$(this).toggleClass('open')
});