refresh values

refresh values

gicugicu Posts: 14Questions: 5Answers: 0
edited June 2021 in DataTables

I create a table:
`<table class="table table-bordered table-responsive-md table-striped text-center table-sm" id="TableId" width="100%">
<thead>
<tr>
<th class="text-center"></th>
<th class="text-center">Mujer</th>
<th class="text-center">Hombre</th>
<th class="text-center">Total</th>
<th class="text-center">Brecha</th>
</tr>
</thead>
<tbody id="dataTable">
</tbody>
</table>
var table = $ ('#TableId'). DataTable ({})
fillData ()
function fillData ()
{
var data="<tr>
<td>rellenando tabla</td>
<td>5</td>
<td>6</td>
<td>11</td>
<td>2</td>
</tr>";
$("#dataTable").html(data)

} `

The question is, when I call the "fillData ()" function and put the structure of the table, it draws it to me well, but when I call the function to export in PDF it exports the pdf without data ... why?

Answers

Sign In or Register to comment.