JSFiddle - React, Tailwind, and code Playground
HTML
<table id="test">
<tbody>
<tr><td>some table cell</td></tr>
</tbody>
</table>
JavaScript
$('table#test').each(function(){
var tbody = $(this).find('tbody');
//how can there be a tbody when there is no <tbody> tag defined?
console.log(tbody.length); //gives 1, should be 0 though as there is no tbody
});