if( ('.container').closest('.item7') = true){
hide THE container of item7.
//----
//need help with this line
//something like $closest('.item7').('.container').hide();
//----
}
Summary:
if item7 class exists in container hide THE container.
Here’s a Fiddle, showing it working > http://jsfiddle.net/ULZGH/