var rows = $(\".sometable tr:last\"); var cells = $(\".sometable tr:last td\").filter(function() { return $(this).html().length == 0 });