JSFiddle - React, Tailwind, and code Playground
by Allendar
HTML
<p>some text <a href="#">text
<table>
<tr>
<td>table content</td>
</tr>
</table>
text</a> more text</p>
JavaScript
'use strict';
$(document).ready(function() {
$('table').each(function() {
console.log($(this).parent());
});
});