JSFiddle - React, Tailwind, and code Playground
by jitter
HTML
<table class="dictwidget" id="dictwidget_example.dict.entry">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
<th>
<div class="dict_actions">
<a class="dict_row_add" href="#">+</a>
</div>
</th>
</tr>
</thead>
<tbody/>
</table>
JavaScript
$('a.dict_row_add').bind('click', function(event) {
event.preventDefault();
var elem = $(this);
var head = elem.parent().parent().parent().parent();
alert(head.get(0).tagName);
var body = $('tbody', head.parent());
alert(body.length); // should be 1
});