JQuery: Hide anchor if href is empty
<p>Been on this one for a while now. Basically I need to check where a href on an anchor tag with the class <code>.pdf-download</code> is empty, and if it is hide it. I have attempted a few options but with no lucck. This is what i have so far.</p>

<pre><code>    $("a.pdf-download").each(function (i) {
  if ($('[href]:empty',this).length == 1) { 
    $(this).hide();
  } else {
    $(this).show();
  }
});
</code></pre>
