JSFiddle - React, Tailwind, and code Playground
by ronnjoe
HTML
<table id="dashboard">
<tr id="1" class="group"><td><div><span title="123"></span></div>asaadsad</td></tr>
<tr id="12"><td>dddd</td></tr>
<tr id="3"><td>wwww</td></tr>
<tr id="4"><td>weee</td></tr>
<tr id="35"><td>wwww</td></tr>
<tr id="6" class="group"><td><div><span title="2223"></span></div>asasd</td></tr>
</table>
JavaScript
//filter table with find
var abc = [];
$("table#dashboard tr").each(function() {
if($(this).closest("tr").hasClass("group")){
newVal = $(this).find( "span" ).attr("title");
abc.push(newVal);
}
});
console.log(abc);