1
I created a function to give focus
in-line of a table
, in this function I have to find the cell with the same values that I will pass by parameter. I wish that when he found the line he only evidenced it in the table.
Someone knows how to do?
JS
var tabela = $(this).attr('alt');
if ($(this).val() != "") {
$("." + tabela + " tbody>tr").hide();
$("." + tabela + " td:contains-ci('" + $(this).val() + "')").parent("tr").show();
} else {
$("." + tabela + " tbody>tr").show();
}
});
HTML
<table name='table_geral' id="#table_geral" class="table table_geral table-striped table-bordered table-hover table-condensed table-ordered" >
<thead>
<tr style="background: #63B8FF;color: #fff; height: 5px" >
<th style="width: 50px">Acoes</th>
<th >Nota</th>
<th align="center" >Cnpj</th>
<th >Serie</th>
<th>Protocolo</th>
<th>Origem</th>
<th>Status</th>
</tr>
</thead>
<tbody style=''>
<tr>
<td align=center>
<a href='javascript:void(0)' name='botao_acharNota' id='botao_acharNota' class='btn btn-success btn-xs' style='width:22px;' data-toggle='tooltip' data-container='body' data-placement='top' title='Clique para ir ate essa nota!'><i class='glyphicon glyphicon-copy'></i></a>
</td>
<td align=center >NOTA</td>
<td align=center>CNPJ</td>
<td align=center >SERIE</td>
<td align=center>PROTOCOLO</td>
<td align=center>file</td>
<td align=center>status</td>
</tr>
</tbody>
</table>
You can add the structure of your table?
– Marconi
Yes. It’s already there
– Marlon Castro
I posted a reply @Marloncastro.
– Marconi