particular id add class in jquery remove 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')
});