Il div contenitore lo nomini id="contenitore" poi usi not $('div').not('#contenitore').hide()