
23/05/2010, 19:37
|
| | Fecha de Ingreso: septiembre-2009
Mensajes: 108
Antigüedad: 15 años, 7 meses Puntos: 1 | |
Respuesta: Ocultar o Readonly he conseguido llegar hasta aca, pero sigue sin funcionar
<script language="JavaScript">
function habilitaText(ind){
if (ind < 0){
document.getElementById('toneladas').readOnly = true;
return true;
}
document.getElementById('toneladas').readOnly = true;
}
</script>
<input name="total_toneladas" type="text" id="total_toneladas" size="30" maxlength="50" onkeyup="habilitaText(this.value)"/>
<input name="toneladas" type="text" id="toneladas" size="5" readonly="false" />
alguna idea |