$(this).next().hide(); <= .on('click') of li next li get hidden $(this).next().remove(); <= work if you want to keep deleting event listener for li include nested li and its parent li. assign class ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results