Suppose the jQuery object is $target.
Of course this only removes it from the visible document. If there are other references to the node from JavaScript, such as the $target variable itself, the object will escape the garbage collector for now. If you want to DESTROY it you also have to lose all references to it. I'm not quite sure why you'd want to DESTROY a DOM element though. Maybe you just hate $target. Poor $target, what did it ever do to you?
bobince
2009-09-08 11:01:05