Problem with Javascript 'document' is not defined [closed]

1

HERE is the code

var nic = document.getElementsByClassName('formulario__input'); 
for(var i = 0; i< nic.length; i++) {
    nic[i].addEventListener('Keyup', function(){
        if(this.value.length>=1){
            this.nextElementSibling.classList.add('fijar');
        }else{
            this.nextElementSibling.classList.remove('fijar');
        }
    });
}
    
asked by Nicolas Flores Muñoz 04.11.2018 в 17:47
source

0 answers