with($('.class')) { find('.sub').remove() with(find('.stuff')) { addClass('other') find('.more_stuff').removeClass('things') } filter('li').appendTo('#my_list') }