title: jQuery selection with filter and exclusion
body: <p>I'm trying to select all  of class .Tag that are not the element passed to the function</p>
  
  <p>Here's what I got:</p>
  
  <pre><code>$("a.tag").filter(":visible").not("\"[id='" + aTagID + "']\"").each(
      function place(index, element) {
          log("  checking element " + element.id);
  });
  </code></pre>
  
  <p>aTagID is passed to this function and is the ID of the calling element that I want to exclude from the selection. log is a function that simply does a console.log.</p>
  
  <p>Here is what I get in the console:</p>
  
  <pre><code>Uncaught Error: Syntax error, unrecognized expression: "[id='t1']"
  </code></pre>