Hi I have table inside that table I have one more table. How to write jquery selector to get only parent table rows?
<table class="required_capacity">
<tr>
<td>Row1</td>
<td>Row1</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr>
<td>Some Text ... </td>
</tr>
<tr>
<td>Some Text ... </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Row 3</td>
<td>Row 3</td>
</tr>
in above html code I need get only $(‘.required_capacity’) table rows. I tried this selector to get rows
$('.required_capacity_table').children('tr')
but it gives in side table rows also?
Try this
DEMO