I am trying to create a mini system that, at random, allows me to select the winner of a prize for employees in the company where I work. I get a random data and I can show it in a td
with an id ="listadeganadores"
, what I want is that in that table, jump to the second and a third position.
The following code prints in the result of the first one but when executing it, it deletes it for the other one.
d3.select("#ganadores").text(data[picked].question);
oldrotation = rotation;
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js"></script>
<table id="listadeganadores" border="1">
<tr>
<td colspan="5" align="center">RESULTADOS</td>
</tr>
<tr>
<!-- en estos td van los resultados -->
<td id="ganadores"></td>
</tr>
</table>