For the moment I solved it with this, but if there are a lot of items, it is very inefficient because of the 2 find instructions: precode Appery('lstContacten').find('li').each( function(){ var delete = true; $(this).find('a[dsid="mobilelistitem1_3"]').each(...