<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!
