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
rorrex
Posts: 2Questions: 2Answers: 0
<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
This discussion has been closed.
Answers
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