I have some Ids in an array and I want to select all elements in the div except those that have the same Ids in the array.
is it possible to do this using a jquery feature and without having to loop the array and compare the Ids.
Use the :not selector, and join the array right there in your selector:
$('div :not(#' + array.join(', #') + ')');