Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/03/2006, 13:12
Avatar de uamistad
uamistad
 
Fecha de Ingreso: diciembre-2004
Ubicación: Cd. de México
Mensajes: 1.395
Antigüedad: 19 años, 5 meses
Puntos: 1
Casi no te entendí, pero para mostrar la cantidad de resultados que tiene un select, basta con usar su propiedad length, ej.

Código HTML:
<html><head><title>Ejemplo Sencillo: Select</title></head>
<body>
<form>
    ¿Cuántas opciones tendrá?
    <select name="opciones">
        <option>Uno
        <option>Dos
        <option>Tres
        <option>Cuatro
    </select>

    <br/>Aquí se muestra cuántas:
    <input type="text" name="muestra" onFocus='this.value=eval(opciones.length)'>
</form>
</body></html> 
El evento puede ser onLoad() para que sea justo al cargar, pero creo que esa sólo se pone en el <body>
__________________
"Di no al Internet Explorer" -Proverbio Chino-