Get id plus value typed by user

0

I am assembling a table via JavaScript as follows:

itens += '<table border="0" class="table table-hover ">'+
        '<thead>'+
          '<tr class="table">'+
              '<th style="text-align:center;" class="col-md-3">Descrição</th>'+
              '<th style="text-align:center;">Qtd</th>'+
          '</tr>'+
        '</thead>'+
        '<tbody>';
    $.ajax({
            dataType: 'json',
            url: "js/ajaxBuscarDados.php",
            cache: false,
            data: {id: id},
            success: function(data) {
              $('#modalAguarde').modal('hide');
              if(data.retorno == 'ERRO'){
                $('#modalAguarde').modal('hide');
                $('#modalErro').modal('show');
                $("#minhaTabela").html(itens);
              }else{
                itens += "<tr>";
                itens += '<td><input disabled type="text" class="form-control" id="descricao" readonly="true" name="title" placeholder="'+ data[i].descricao +'"></td>';
                itens += '<td><input type="text" class="form-control" id="qtd" name="qtd#'+data[i].id_i+'" value=""></td>';
                itens += "</tr>";
              }
              itens += "</tbody></table>";
              $("#minhadiv").html(itens);
              }
            }
    });

Now comes my problem: When I perform the submit of form, I am returned several fields qtd plus the numbering of the table ID. Followed by its user-informed value.

How do I get the value of the ID plus the value that the user entered?

EDIT:

My PHP return: link

    
asked by anonymous 19.08.2016 / 20:09

0 answers