title: foreach: how to repeat one whole table cell
body: <p>How do I repeat a table cell in knockout? The code I have is only repeating the cell contents and not the whole cell.  </p>
  
  <pre><code>&lt;table class="table table-condensed" &gt;
          &lt;tbody data-bind="foreach: {data: permissableGrouping.permissables, as: 'permissableAccess'}"&gt;
  
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;div class="checkbox"&gt;
                          &lt;label data-bind="text: permissableAccess.permissable.permissableName()"&gt;&lt;/label&gt;
                      &lt;/div&gt;
                  &lt;/td&gt;
  
                  &lt;td data-bind="foreach: { data: permissableAccess.accessTypes, as: 'accessType' }"&gt;
                      &lt;div class="checkbox"&gt;
                          &lt;label&gt;
                              &lt;input type="checkbox" data-bind="checked: accessType.hasAccess" /&gt;
                              &lt;span data-bind="text: accessType"&gt;&lt;/span&gt;
                          &lt;/label&gt;
                      &lt;/div&gt;
                  &lt;/td&gt;
  
                  &lt;td&gt;&lt;input type="hidden" data-bind="console: $root" /&gt;
                      &lt;input type="button" data-bind="click: $root.dataModel.removePermissable.bind(permissableAccess.permissable)" value="Remove" class="btn btn-default" /&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>