I have this code, now i want to create two checkboxes one for "emp_nome" and another for "local" when i check either of them i can search my input only for those checked values, help please
<input type="text" id="myInput" ng-model="search.SN" placeholder="Search for names..">
<div style="overflow-x:auto;">
<table id="myTable">
<tr style="border-bottom:1px solid black;" class="header">
<td>ID</td>
<td>Nome Entidade</td>
<td>Ultima Localização</td>
<td>Categoria</td>
<td>Nº de Reclamações contra Entidade</td>
<td>Data da última reclamação</td>
</tr>
<tr ng-repeat="x in myData | filter: {emp_nome: search.SN} || filter: {local: search.SNs}" id="removal">
<td></td>
<td style="background:rgba(0, 159, 255, 0.24);font-size:17px;"><u></u></td>
<td></td>
<td></td>
<td ><center></center></td>
<td><center></center></td>
</tr>
</table>
<br><br>
</div>
Aucun commentaire:
Enregistrer un commentaire