Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/09/2009, 19:54
CarolJohana
 
Fecha de Ingreso: diciembre-2008
Ubicación: Bogota
Mensajes: 149
Antigüedad: 15 años, 4 meses
Puntos: 1
Respuesta: Mostar una caja de texto apartir de una lista desplegable

Hola segui el consejo de utilizar el visbility pero resulta que cuando hago visible la caja de texto me queda inhabilitada y no se por que dejo el codigo para una ayuda
Cita:
<script type="text/javascript">

function getOptions()
{
var x=document.getElementById("cuotas").value;

if(x==1){

document.getElementById('unoo').style.display='blo ck';
document.getElementById('uno').style.visibility = 'visible';

}
}
function soloNumeros(evt) {
var tecla = String.fromCharCode(evt.which || evt.keyCode);
if ( !/[\d.\b\r]/.test(tecla) ) return false;
return true;
}
</script>
</head>
<body>
<form>
Seleccione el numero de cuotas:
<select id="cuotas">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</select>
<div id="uno" style="visibility:hidden">

<input type="text" id="unoo" maxlength="10" onkeypress="return soloNumeros(event);" class="text ui-widget-content ui-corner-all" style="display: none;"/>
<input type="text" name="fecha_terminacion1" id="fecha_terminacion1" class="text ui-widget-content ui-corner-all" />
</div>
<br /><br />
<input type="button" onclick="getOptions()" value="Output all options">
</form>
</body>

</html>
Si alguien pudiera ayudarme le agradeceria