Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/09/2010, 23:23
marco64yes
 
Fecha de Ingreso: septiembre-2010
Mensajes: 350
Antigüedad: 13 años, 7 meses
Puntos: 9
Exclamación Ayuda con listbox dinamico,, style

Hola que tal ,.. tengo una muy pequeña duda que para ustedes puede ser muy sencilla,,, tengo este codigo:

<script type="text/javascript">
function camposervicio(cantidad){
var div = document.getElementById("campos_servicios");
while(div.firstChild)div.removeChild(div.firstChil d); // remover elementos;
for(var i = 1, cantidad = Number(cantidad); i <= cantidad; i++){
var salto = document.createElement("P");
var input = document.createElement("select");
var text = document.createTextNode("Servicio " + i + ": ");
input.setAttribute("name", "servicio" + i);

//MI DUDA ES DONDE COLOCO ESTO: style='height:80px'
//input.setAttribute("style", "style='height:80px'" + i);

input.className = "input";
salto.appendChild(text);
salto.appendChild(input);
div.appendChild(salto);
}
}
</script>

//MI DUDA ES DONDE COLOCO ESTO: style='height:80px'
//input.setAttribute("style", "style='height:80px'" + i);


saludos!