jQuery remove: $("...").remove() vs .remove("...")
<p>Reading the docs, I'd expect <code>$("#wrap2").remove(".error")</code> to remove all <code>.error</code> elements from <code>#wrap2</code>. However looking at this JSFiddle: <strong><a href="http://jsfiddle.net/hCGUS/" rel="nofollow">http://jsfiddle.net/hCGUS/</a></strong> it doesn't appear to be the case? </p>

<pre><code>$(function() {
    $("#wrap1 .error").remove(); // works 
    $("#wrap2").remove(".error"); // fails ...
})​
</code></pre>
