How can I apply jQuery
$(':not(.test:has(.example))').css('color', 'red');
http://jsfiddle.net/9fkz7y1g/