Ver Mensaje Individual
  #27 (permalink)  
Antiguo 05/01/2012, 08:44
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: error en internet explorer funcion js

ahora creo entender a lo que te referías. de ie9 no puedo hablar, pero en ie8- y demás navegadores lo que obtienes, como adyacente, es text object.
resumiendo;
  • nextElementSibling para ie9 y demás navegadores
  • nextSibling.nextSibling para ie8- y demás navegadores
por lo tanto quedaría algo así
Cita:
var miFuncion = function(e){
var interesante = e.nextElementSibling || e.nextSibling.nextSibling;
return interesante.id;
}

<select name="paises" id="paises" onchange="recuperar(this.form.paises.value, miFuncion(this),'ciudades.php')">
era eso??
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}