Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/09/2008, 08:34
Avatar de foreverOdd
foreverOdd
 
Fecha de Ingreso: noviembre-2007
Ubicación: Caracas
Mensajes: 489
Antigüedad: 16 años, 6 meses
Puntos: 14
Respuesta: Problemas con getElementsByTagName

Dos errores.

1. Cuando se ejecuta el script los elementos no existen, bueno si lo colocas antes de los elementos.
2. la funcion getElementByTagName pertenece al document no al formulario

trata asi:

window.onload = function(){
var form = document.getElementById('frm');

var inputs = document.getElementsByTagName('input');

for(var i = 0;i < inputs.length;i++){

inputs[i].disabled = true;

}
}
</script>
__________________
My path is lit by my own fire, I only go where I desire