With below code I get of tr elements id attributes:
var IDs = [];
$(".head").each(function(){ IDs.push(this.id); });
alert(IDs);
These tr elements have checkboxes.
What I want is that if checkboxes are checked then I have these tr ids. I need checked checkboxes tr ids 🙂
How can I achieve it?
You need this to get the parent id of the ticked checkboxes…
Here’s a working example…
http://jsfiddle.net/uMfe3/