
08/05/2006, 11:21
|
 | Colaborador | | Fecha de Ingreso: febrero-2002 Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años, 1 mes Puntos: 772 | |
Hola cruzz
A ver si te sirve esto:
Código:
<html>
<head>
<script type="text/javascript">
function cambiar(num) {
document.forms[0].rub.style.display = (num==0) ? 'block' : 'none';
document.forms[0].cod.style.display = (num==0) ? 'none' : 'block';
}
</script>
</head>
<body>
<form>
<select onchange="cambiar(this.selectedIndex)">
<option>Rubro</option>
<option>Código</option>
</select>
<select name="rub">
<option>algo</option>
</select>
<textarea name="cod" style="display:none"></textarea>
</form>
</body>
</html>
Saludos, |