I have a table in which all the records of a table of the bd are displayed and in which when clicking, the information of the selected record must be shown in the form, since in this form the first record is always shown, besides everything on the page keeps working perfectly
This is my page and what I mean to keep working the rest of the page is the main menu are dropdowns which allows you to select a file, the button of the 3 bars is to compact the main menu, and where it says the name martin damian and a green dot is to close session, in addition to the NEW, EDIT and DELETE buttons continue to work correctly
---- CODE SELLERS TABLE -----
<div class="box-body" style="height:380px; overflow:auto">
<table id="example1" class="table table-bordered table-striped" >
<thead>
<tr>
<th>No. Vendedor</th>
<th>Nombre</th>
<th>RFC</th>
</tr>
</thead>
<tbody>
<?php
while($fila=sqlsrv_fetch_array($consultaVendedores)){
$numVende=$fila['no_vende'];
$nom=$fila['nombre'];
$rfc=$fila['rfc'];
?>
<tr id="fila" onclick="alerta(<?php echo $numVende;?>);" >
<th id="no_vende" ><?php echo $numVende; ?></th>
<th id="nombre"><?php echo $nom; ?></th>
<th id="rfc"><?php echo $rfc; ?></th>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
---- CODE FUNCTION ALERT ----
function alerta(id){
$("#info").load('datosVende.php?id='+id);
}
the div info is everything in the center