Suppose I have the following HTML:
One Two
You can do it using context along with selector as under,
$('li', $('div:not(.foo)'))
LIve Demo
$('li', $('div:not(.foo)')).each(function(){ alert($(this).text()); });