1
I have an HTML table for call management
<table class="table">
<thead>
<tr>
<th>Protocolo</th>
<th>Problema</th>
<th>Situação</th>
<th>Usuario</th>
<th>Atendente</th>
</tr>
</thead>
<tbody>
<tr>
<td>#1</td>
<td>Internet</td>
<td>Encerrado</td>
<td>Alexandre</td>
<td>Carlos</td>
</tr>
<tr>
<td>#2</td>
<td>Monitor</td>
<td>Aberto</td>
<td>Renato</td>
<td>#</td>
</tr>
<tr>
<td>#3</td>
<td>Formatação</td>
<td>Em andamento</td>
<td>Alexandre</td>
<td>José</td>
</tr>
</tbody>
</table>
Here is the example, I have 3 buttons
<div class="btn-group">
<button type="button" id="Abertos" class="btn btn-success btn-xs">Abertos</button>
<button type="button" id="Andamento" class="btn btn-warning btn-xs">Andamento</button>
<button type="button" id="Encerrados" class="btn btn-danger btn-xs">Encerrados</button>
</div>
I wanted to know how to do so that when I click for example on the "Open" button it brings me in the table, only the records where the "Situation" column is filled with the word "Open", and so on, how I would do it?
Thanks friend, it worked but I have another doubt, after, in a real situation, these data would come from the database, by default, the date-state would come as "Open", then when the technician adopted the call, some other script could change that date-state to "In Progress" and to "Finished" when finished?
– Kahzinhuh
@Kahzinhuh that state will be changed before the page loads again? ie it will be changed while the page is open?
– Sergio
It changes while the page is open, for example when I click "Answer Called", it would automatically change to "In Progress"
– Kahzinhuh
The same when I finish the call
– Kahzinhuh
@Kahzinhuh in that case you should use ajax and change the
td
whole. If you don’t know how to do that, ask a new question, or take a look here: https://answall.com/q/6626/129– Sergio
Thanks, I think with your help I can already find the way to study what I need.
– Kahzinhuh