cannot target .last span's text
<p>My php is this</p>

<pre><code>echo "&lt;li&gt;&lt;a href='report_view.php?id=" . $row['id'] . "'&gt;ID:(&lt;span class='id'&gt;" . $row['id'] . "&lt;/span&gt;) ".$row['date'] ."- [".$row['domain'] . "]&lt;/a&gt; &lt;a class='delete'&gt;delete&lt;/a&gt;&lt;/li&gt;";
</code></pre>

<p>will output something like this:</p>

<p>ID:(1) May 21, 2011, 1:32 pm- [www.website.com... ] delete</p>

<p>When I press delete I want it to take the ID from that li row  which is displayed between span tags with class of id</p>

<p>My Jquery does this:   </p>

<pre><code> $('a.delete').click(function () {  
    $(this).parent("li").next("span.id").html()
    alert(this);
    });
</code></pre>

<p>keeps alerting nothing, should be alerting 1. What am i doing wrong?</p>

<p>Cheers</p>
