como guardar valor {data:"idvehiculo"} en un input para enviarlo despues x get

como guardar valor {data:"idvehiculo"} en un input para enviarlo despues x get

rorrexrorrex Posts: 2Questions: 2Answers: 0
edited February 2019 in Free community support
<script>
    $(function() {
    $('#example').DataTable( {
        "processing": true,
        "ajax": {
          "url": "data.php", 
          "dataSrc": "data" //indice del array retornado
       },
       
        "columns": [ // Aquí los nombres de las columnas que devuelve PHP
                   {data:"idvehiculo"},
                    {data:"marca"},
                    {data:"observacion"},
                   {"render": function () {
            return ' <form ="GET" action="ficha_final"><input type="text" value="AQUI QUIERO MOSTRAR EL idvehiculo pero no sé como" name="id"><button type="submit" value="INFORME"></form>';
        }},
                   
        ]
    });
});
    </script>

espero su ayuda :smile:

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @rorrex ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.