Hi Experts!
I am using jQuery to get as an array the tr id's for a given filter
var comment = $('tr[id$=comment]').get();
for (var k in comment ) {
console.log(comment [k]);
}
Open in new window
After executing this code I get in the console the actual <tr> element array like this
<tr style="display: none;" id="[b]name1_comment[/b]">
Open in new window
How one can get the tr id from this? In jQuery one uses
$(this).attr('id')
Open in new window
in an each, but I would like to know if there is a pure JS way to do it.
Thank you!