JSFiddle - React, Tailwind, and code Playground

by charaf11

HTML

<table>
<tr>
<th>Sat 08 Jan</th>
<td  headers="tbl241id1_0 tbl241id0_2">&#160;7&deg;C   &#47; 2&deg;C</td>   
<tr>

<th>Sun 09 Jan</th><td  headers="tbl241id1_0 tbl241id0_2">&#160;5&deg;C   &#47; 2&deg;C</td>
    <tr>

<th> Mon 10 Jan</th><td  headers="tbl241id1_0 tbl241id0_2">&#160;4&deg;C   &#47; 1&deg;C</td>
     
</table>

JavaScript

var values=Array();
 //Loop that iterate over t
 $('td[headers="tbl241id1_0 tbl241id0_2"]').each(function(index,value){
   values.push($(this).text());

  });

 alert(values);