how to get value from this input inside the table with data from bd:
HTML CODE
<table id="tbl_3" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style='text-align: center;' >NOME</th>
<th style='text-align: center;' >SETOR</th>
<th style='text-align: center;' >QTD</th>
<th style='text-align: center;' >R$</th>
<th style='text-align: center;' >QTD</th>
<th style='text-align: center;' >R$</th>
<th style='text-align: center;' >QTD</th>
<th style='text-align: center;' >R$</th>
<th style='text-align: center;' >QTD</th>
<th style='text-align: center;' >R$</th>
</tr>
</thead>
<tbody>
<?
foreach($z as $item){
?>
<tr>
<td style='text-align: left; width: 250px'><?=$item['nome']; ?></td>
<td style='text-align: center; width: 250px''><?=$item['setor']; ?></td>
<td style='text-align: center; width: 62px' class="editar1" > <?=$item['qtd1']; ?> <input type="text" id="qtd1" name="qtd1" value="<?=$item['id']; ?>" /> </td>
<td style='text-align: center; width: 62px'><?=$item['valor1']; ?></td>
<td style='text-align: center; width: 62px' ><?=$item['qtd2']; ?></td>
<td style='text-align: center; width: 62px'><?=$item['valor2']; ?></td>
<td style='text-align: center; width: 62px' ><?=$item['qtd3']; ?></td>
<td style='text-align: center; width: 62px'><?=$item['valor3']; ?></td>
<td style='text-align: center; width: 62px' ><?=$item['qtd4']; ?></td>
<td style='text-align: center; width: 62px'><?=$item['valor4']; ?></td>
</tr>
<? } ?>
JS CODE
$('#tbl_3 tbody tr td.editar1').dblclick(function(){
var idElemento = $('#tbl_3 tbody tr td input').val() ; console.log(idElemento);
I want to get the ID in this input to handle an update in the DB.