jQuery: add class to sibling rows columns of same index
<p>I've created function to find columns which contains number, then add class to them and to the next columns before code find an empty column. I also want to add class to the columns below (next rows but columns of same index) but I can't solve it. I've tried .parent() method but I'm stuck and I don't know what i'm doing to be honest... Here's my code</p>

<pre><code>  $("table tbody tr td").each(function () {
    var num = $(this).text();
    if ($.isNumeric(num)) {
      $(this).addClass('word-' + num).nextUntil('td:empty').addClass('column-' + num);
    }
  });
</code></pre>

<p>And here's image to show what i want to do (red fields).<a href="https://i.stack.imgur.com/T61nQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T61nQ.jpg" alt="enter image description here"></a></p>

<p>Sorry for my english.</p>