jQuery ID attr
<pre><code>$("a.close").click(function() {
    var id = $(this).attr("id");
    alert(id);
    $(this).parents("div.venue:first").fadeOut("Fast");
    return false;
});
</code></pre>

<p>Any ideas why the alert isn't correctly popping up the current divs ID?</p>

<p><strong>Final code, thanks below for pointing my stupid error</strong></p>

<pre><code>var id = $(this).parents("div.venue:first").attr("id");
</code></pre>
