[jQuery] array method on a jQuery object: deleting, adding elements

[jQuery] array method on a jQuery object: deleting, adding elements


hi all,
since a jQuery collection (say, `var j = $( 'div' )`) looks and
behaves a bit like a standard javascript array (you can iterate over
it, fetch single elements using `j[n]`, delete everything doing
`j.length = 0`), what is the preferred way to do other array-like
manipulations on it?
let's say i have `j` as defined above, and want to throw out (from the
collection, not from the document) any element that the user clicks
on, how could i do that? i browsed parts of the source but did not
grok where a jQuery object keeps its collection of elements (my own
javascript code looks like cave painting in comparison). am i missing
something terribly obvious here?
_wolf