Ver Mensaje Individual
  #8 (permalink)  
Antiguo 26/05/2003, 03:22
Avatar de caricatos
caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años, 11 meses
Puntos: 1284
Hola otra vez:

Otra cosa que puedes hacer es poner un id, y al llamar a la función, poner this.id, y manejarlo con getElementById...

<SELECT id="firstList" name="firstList" onclick="newOptionSelected(this.id)">

y luego:

function newOptionSelected(e){
document.getElementById("e"). options[document.getElementById("e").selectedIndex].style.background="FF00FF"
}

Saludos