Ver Mensaje Individual
  #15 (permalink)  
Antiguo 21/09/2012, 01:14
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 17 años
Puntos: 574
Respuesta: Copiar Fila de grid

A ver, esto

Código HTML:
Ver original
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <title>Documento sin t&iacute;tulo</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. </head>
  5. <table width="100%" border="1" cellspacing="0" cellpadding="5">
  6.   <tr onclick="document.getElementById('idclient').value=1;
  7.            document.getElementById('nombre').value='nombre1';">
  8.     <td>1</td>
  9.     <td>Nombre1</td>
  10.   </tr>
  11.   <tr onclick="document.getElementById('idclient').value=2;
  12.            document.getElementById('nombre').value='nombre2';">
  13.     <td>2</td>
  14.     <td>Nombre2</td>
  15.   </tr>
  16.   <tr onclick="document.getElementById('idclient').value=3;
  17.            document.getElementById('nombre').value='nombre3';">
  18.     <td>3</td>
  19.     <td>Nombre3</td>
  20.   </tr>
  21. </table><br /><br />
  22. <input name="idclient" type="text" id="idclient" value=""><br />
  23. <input name="nombre" type="text" id="nombre" value=""><br />
  24. </body>
  25. </html>

funciona perfectamente.

Luego solo tienes que hacerlo dinámico insertando el php...
__________________
Quim
--------------------------------------------------
Ayudar a ayudar es una buena práctica!!! Y da buenos resultados.