Vlastnost tFoot

Vlastnost tFoot uchovává odkaz na tfoot tabulky.

Syntaxe

javascripttabulka.tFoot;

Příklad

Obarvíme zápatí tabulky na červeno:

html<table id="table">
  <thead>
    <tr>
      <th>header1</th>
      <th>header2</th>
      <th>header3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>value</td>
      <td>value</td>
      <td>value</td>
    </tr>
    <tr>
      <td>value</td>
      <td>value</td>
      <td>value</td>
    </tr>
  </tbody>
  <tfoot>
    <tr>
      <td>celkem</td>
      <td>celkem</td>
      <td>celkem</td>
    </tr>
  </tfoot>
</table>
javascriptlet table = document.querySelector('#table');
table.tFoot.style.color = 'red';

Viz také

  • vlastnost tHead,
    která obsahuje thead tabulky
  • vlastnost tBodies,
    která obsahuje tbody tabulky
  • vlastnost rows,
    která obsahuje řádky tabulky
  • vlastnost cells,
    která obsahuje buňky tabulky