JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr id="test">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
JavaScript
$.each($("#test").children(),function(index,data){
alert(index)
})