I have a table structure for displaying posts like this:
<table>
<tr><td>heading of the post</td></tr>
<tr><td>body of the post</td></tr>
</table>
I want to hide both rows if the body's content happens to be empty.
How can I achieve this using jquery?
Forgot to mention the body contains images that are removed if they didn't load correctly $("img").error(function(){ $(this).remove(); }); but when I check the source the html is still there so maybe it is not being considered as empty