I have a table which contains 'n' rows dynamically generated. All <td>
's may or may not contain data. I want to hide or delete '<tr>
' if all it's td's are empty.
I don't know how to parse through all <td>
's and make sure it's empty or not.
example table as follows,
<table id='ex_table'>
<tr>
<td>one</td>
<td>two</td>
</tr>
<tr>
<td></td>
<td>one</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
In the above table last row need to be hidden since all it's <td>
's are empty. I prefer jquery to do this.