add and remove css class in jquery on click 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')
});