getting a clicked elements id with jquery
<p>I have a series of Delete icons displays as such:</p>

<pre><code>echo '&lt;img id="'.$items['id'].'" src="images/delete.png" /&gt;';
</code></pre>

<p>Where <code>$items['id']</code> is a reference to the id of the DB item I would like that icon to delete.</p>

<p>How can I access this id in jquery when the item is clicked so I can then call a:</p>

<pre><code>$.get('ajax/delete.php', { id: $('#id').val() },      
function(data) {}
</code></pre>

<p>Or something of the sort.</p>
