Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

322
Visualizações
JS + sweetalert - insert values from checkbox to input field

I must select from a window (done with sweetalert2) a row.

first img

And insert them according to the column in each input of the following image second

This is the code of the pop up...

 function detalleTransf( detalle_transferencia_id, matricula, bancoorigenTransf, cbu_cta_origen, titular_cta_origen, ultimos_digitos_cta_origen) {

        var datosTransferencia = {{ datosTransferencia|json_encode|raw }} ;

        let html = "<html><body>"

        html += "<div class='table-responsive'><table class='table table-hover table-condensed no-border'>" +
            "<tr class='encabezado-tabla'> <td class='text-center'>Seleccionar </td><td class='text-center'> Matricula</td><td class='text-center'> Banco de Origen</td><td class='text-center'>CBU Cuenta Origen</td><td class='text-center'>Titular Cuenta Origen</td><td class='text-center'>Últimos 5 Dígitos Cuenta Origen</td> </tr>";

        for (let row of datosTransferencia) {

            html += "<tr id='algo'><td class='text-center'><div class='radio'><input type='checkbox' name='check' value='value' id='regular' onclick='unCheck(this)' ><label style='display: none'>" + row.detalle_transferencia_id + "</div></label></td>";

            html += "<td class='text-center'>" + matricula + "</td>";

            html += "<td class='text-center'>" + row.transf_banco + "</td>";

            html += "<td class='text-center'>" + row.transf_cbu + "</td>";

            html += "<td class='text-center'>" + row.transf_titular + "</td>";

            html += "<td class='text-center'>" + row.transf_ctaorigen + "</td></tr>";

        }

        html += "</table></div>";

        html += "</body></html>";
        return html;
    };

Example:

In the sweetalert window, I select a row with the check, the value of the "banco de origen" column... must go in the second image in the input field "banco de origen"

what i need is a function to insert the data from the window to de input field

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda