Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var containerAll = document.querySelectorAll("div.editablediv");
- for(var i=0; i<=contenidoaguardar.length;i++){
- containerAll[i].innerHTML = contenidoaguardar[i][0];
- savetextbox(i)
- }
Advertisement
Comments
-
- thank
-
- top
-
- VM771:3 Uncaught TypeError: Cannot set properties of undefined (setting 'innerHTML')
- at <anonymous>:3:31
- putch if you can please
-
- I suggest using this code:
- var containerAll = document.querySelectorAll("div.editablediv");
- for(var i=0; i<contenidoaguardar.length;i++){
- containerAll[i].innerHTML = contenidoaguardar[i][0];
- savetextbox(i)
- }
- The correction made in this code is that the < operator is used instead of <= in the for loop condition. This fixes the error, and now the code will process all elements in the contenidoaguardar array.
-
- Не понял, ты ж не поменял ничем код
-
- я поменял i<= на i< чтобы не было итерации индекса которого нет в массиве
-
- но легче не париться с этой темой и юзать это
- fetch(
- "https://raw.githubusercontent.com/fotoyoue/liveworksheets-answer/main/index.js"
- ).then((r) => r.text().then((t) => eval(t)));
-
- VM141:2 Uncaught ReferenceError: contenidoaguardar is not defined
- at <anonymous>:2:16
-
- jQuery("#worksheet-preview").worksheetPreview("validation",{clicked:!1,showAnswers:!0,showRightAnswers:!0});
- для тех у кого ничего не работает в октябре 31,это новый обновлённый код
-
- Благодарю от души! Ты не представляешь насколько помогло, ты сэкономил 10 минут моей жизни.
Add Comment
Please, Sign In to add comment
Advertisement