Tema: javascript
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/09/2009, 08:25
crisfach
 
Fecha de Ingreso: septiembre-2008
Mensajes: 56
Antigüedad: 16 años, 4 meses
Puntos: 0
javascript

oola nuevamente amigos del foro ....

muchas gracias por SUS RESPUESTA PERO AUN NO PUEDO HACER ALGO...

NECESITO AYUDA
como agrego un combobox dentro de una celda y que ah medida que yo seleccione agregar otra celda o fila tambien se vaya agregando el mismo combobox?

espero su respuesta y ayuda ....

porfavorr
gracias..

EJEMPLO DEL CODIGO QUE ESTOY IMPLEMENTANDO PARA IR AGREGANDO FILAS


<script>
var contador=6;
function agregar(){
var contenido=document.getElementById('div1').innerHTM L;
var contenidoutil=contenido.substring(0,contenido.inde xOf("<!-- marca -->"));
var contenidonoutil=contenido.substr(contenido.indexOf ("<!-- marca -->"));
var linea="<input type=\"text\" size=\"15\"name=\"textfield"+(contador+1)+"\"> <input type=\"text\" size=\"15\" name=\"textfield"+(contador+2)+"\"> <input type=\"text\"size=\"15\" name=\"textfield"+(contador+3)+"\"> <input type=\"text\"size=\"15\" name=\"textfield"+(contador+4)+"\"> <input type=\"text\"size=\"15\" name=\"textfield"+(contador+5)+"\"> <input type=\"text\"size=\"15\" name=\"textfield"+(contador+6)+"\"><br>";
document.getElementById('div1').innerHTML=contenid outil+linea+contenidonoutil;
contador=contador+6;
}
</script>


<body>
<table width="822" height="28" border="1">
<tr>
<td width="109" >&nbsp;</td>
<td width="111">&nbsp;</td>
<td width="110">&nbsp;</td>
<td width="110">&nbsp;</td>
<td width="110">&nbsp;</td>
<td width="110">&nbsp;</td>
<td width="12">&nbsp;</td>
<td width="98">&nbsp;</td>
</tr>
</table>

<div id="div1"><form method="post" action="insert.php">
<input type="text" size="15" name="origen" value="">
<option value="SI"></option>
<input type="text" size="15" name="cliente">
<input type="text" size="15" name="folio" >
<input type="text" size="15" name="textfield4">
<input type="text" size="15" name="textfield5">

<input type="text" size="15" name="textfield6">


<br><!-- marca -->
<input type="button" name="Submit" value="agregar" onclick="agregar()">
<input type="submit" name="Submit2" value="Enviar">
</form></div>
</body>