Advertisement
Glory-to_Azov
Mar 2nd, 2023
147
0
Never
This is comment for paste liveworkshit answers
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I suggest using this code:
  2.  
  3. var containerAll = document.querySelectorAll("div.editablediv");
  4. for(var i=0; i<contenidoaguardar.length;i++){
  5. containerAll[i].innerHTML = contenidoaguardar[i][0];
  6. savetextbox(i)
  7. }
  8.  
  9. 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.
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement