Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/02/2003, 07:44
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 7 meses
Puntos: 381
Pues no sé si hay alguna forma más sencilla, pero a ver si te sirve algo así

Código PHP:
<script langauge="javascript">
function 
pepe(cual)
{
selecciones 0
cantidad
=cual.options.length
for(m=0;m<cantidad;m++)
    {
    if(
cual.options[m].selected==true){selecciones++}
    }
alert(selecciones)
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
  <select name="select" size="4" multiple onBlur="pepe(this)">
    <option value="uno">uno</option>
    <option value="dos">dos</option>
    <option value="tres">tres</option>
    <option value="cuatro">cuatro</option>
  </select>
</form>