![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/10/2004, 18:41
|
| | Fecha de Ingreso: octubre-2004
Mensajes: 3
Antigüedad: 20 años, 3 meses Puntos: 0 | |
--solo copia y pega el siguiente codigo
<html>
<head>
<title></title>
<script language="javascript">
function limpiaSel(opc)
{
if (opc==1)
{
forma.sel2.options[0].selected=true;
forma.sel3.options[0].selected=true;
}
if (opc==2)
{
forma.sel1.options[0].selected=true;
forma.sel3.options[0].selected=true;
}
if (opc==3)
{
forma.sel1.options[0].selected=true;
forma.sel2.options[0].selected=true;
}
}
</script>
</head>
<body>
<form name="forma">
<select name="sel1" onchange="limpiaSel(1);">
<option></option>
<option>opcion 1</option>
<option>opcion 2</option>
<option>opcion 3</option>
</select>
<select name="sel2" onchange="limpiaSel(2);">
<option></option>
<option>opcion 1</option>
<option>opcion 2</option>
<option>opcion 3</option>
</select>
<select name="sel3" onchange="limpiaSel(3);">
<option></option>
<option>opcion 1</option>
<option>opcion 2</option>
<option>opcion 3</option>
</select>
</form>
</body>
</html> |