Getting id of tr element if the checkboxes is checked
<p>With below code I get of <code>tr</code> elements <code>id</code> attributes:  </p>

<pre><code>var IDs = [];
$(".head").each(function(){ IDs.push(this.id); });
alert(IDs);
</code></pre>

<p>These <code>tr</code> elements have checkboxes. </p>

<p>What I want is that if checkboxes are checked then I have these <code>tr</code> ids. I need checked checkboxes <code>tr</code> ids :)</p>

<p>How can I achieve it? </p>
