server-side put hidden field
server-side put hidden field
theteo
Posts: 15Questions: 3Answers: 0
Javascript (resume)
"columns": [
{ "data": "cpf" },
{ "data": "nome" , },
{ "data": "sobrenome" , },
{ "data": "celular" },
{ "data": "email" },
{
"data": null,
"defaultContent": "<form method=\"post\" action=\"\"><input type=\"hidden\" id=\"idcontrib\" name=\"idcontrib\" value=\" => "DATA": "ID" <= \"><button type=\"submit\" class=\"btn btn-warning btn-xs\" name=\"edit_contrib\">Editar</button> <button type=\"submit\" class=\"btn btn-danger btn-xs\" name=\"exc_contrib\">Excluir</button></form>"
},
Server-side script
$columns = array(
array( 'db' => 'cpf', 'dt' => 'cpf' ),
array( 'db' => 'fnome', 'dt' => 'nome' ),
array( 'db' => 'lnome', 'dt' => 'sobrenome' ),
array( 'db' => 'celular1', 'dt' => 'celular' ),
array( 'db' => 'email', 'dt' => 'email' ),
array( 'db' => 'id_contrib', 'dt' => 'id' )
);
How can i put inside hidden field the value ' "data": "id" ' ?
This discussion has been closed.
Answers
somebody can help me here:
How can i do that ? Please.
so guys, somebody ? Maybe you Allan.
Resolved
script
Server-side
tks Anderson Torres
http://andersontorres.com.br/