title: jQuery: If this HREF contains
body: <p>Why can't I get this to work??</p>
  
  <pre><code>$("a").each(function() {
      if ($(this[href$="?"]).length()) {
          alert("Contains questionmark");
      }
  });
  </code></pre>
  
  <p>Ps.: This is just at simplifyed example, to make it easier for you to get an overview.</p>