Right way to get the children
- by Web Developer
I have the below code and it works but what is the right way to get table onclick of add
HTML
<h4 class="titlebar">
Skills
<small><a onclick="return false;" href="/add/" data-span="3">Add</a></small>
</h4>
<div class="body">
<table class="table"><tbody>
<tr><td width="125"></td></td></tr>
</tbody></table>
</div>
JQuery
var TableBlock = $(this).closest('.titlebar').next().children('table');