Cannot read property 'length' of undefined at type in javascript -
i have 2 errors: cannot read property 'length' of undefined @ type , typing. wrong?
settimeout(function typing() { var fields = document.queryselectorall('input'); var text = ["text", "text", "text", "text"]; function print (input, num, timeout) { settimeout(function(){ var = 0; function type(){ if (i <= text[num].length) { input.value = text[num].substr(0, i); settimeout(type, 100); } console.log(text[num].length); i++; } type(); console.log(type()); if (num == 3) { settimeout( function() { document.getelementbyid('postlogo_animation').classname +=" postlogo-img" },text[num].length * 120); } }, timeout); } (var b = 0; b < fields.length; b++) { var timeout = 0; var input = fields[b]; if (b > 0) { (var c = 0; c < b; c++) { timeout += text[c].length * 140 } } print(input, b, timeout) }}, 1000);
cannot read property 'length' of undefined @ type , typing. wrong? here console
Comments
Post a Comment