jQuery click event
<p>I want to do following:
Have an  tag inside an  tag. listen to click() event of a tag. in click-event i want to check if img tag has an specific attribute or not.</p>

<p>for example:</p>

<pre><code>&lt;a href='#' id='myid'&gt;&lt;img src='' alt='' played='1'&gt;&lt;/a&gt;


$('#myid').click(function(e){
  if(e.target.attr('played')){
    // do something...
  }
});
</code></pre>

<p>how can i get the attribute of my img tag? i never check the element-handlers in jquery...</p>

<p>kind regards!</p>
