1
In Html5/css/bootstrap 4... How can I add a column at page run time?
div class="container">
<h1 class="page-header">Tabelas com Bootstrap</h1>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover table table-bordered table table-striped">
<tbody>
<tr>
<th>1</th>
<td>Conteúdo</td>
<td>Conteúdo</td>
</tr>
<tr>
<th>2</th>
<td>Conteúdo</td>
<td>Conteúdo</td>
</tr>
<tr>
<td>Conteúdo</td>
<td>Conteúdo</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container">
© 2016 - Web Dev Academy
</div>
<button type="button">Adicionar mais uma linha
</button>
How to add one more row to this table when the user clicks the button...?
When you use the append command it already adds to the end. It is not necessary, and even counter producent, if it wants to insert more rows.
– Brunno Vianna
The append is to add an entire row at the end of the table. The prepend to add a column at the beginning of the row. What’s the problem?
– Sam
thank you both very much! the answers serve for my studies. I thank you from my heart! Soon I will be commenting and I will help beginners as well as you! Thank you very much and @Brunnovianna!
– Emilio Dami Silva