I am trying to check if an element is empty.
My item might be something like
<table> <td> </td> <td> </td> <td> </td> <td>text</td> </table>
I tried:
$('table td').each(function(){ if($(this).is(':empty')){ console.log('found;) } })
and
$('table td').each(function(){ if($(this).html()==' '){ console.log('found') } })
but I can not find it. Anyway, can I do this? Many thanks!
source share